1#version 430 2 3layout (std140) uniform ColorBlock 4{ 5 vec4 color2; 6} uColorB; 7 8layout (std140) uniform Block 9{ 10 mat4 uWorld; 11} uDefaultB; 12 13out Vertex 14{ 15 vec4 v2; 16} oVert; 17 18 19in vec4 P; 20 21vec4 getColor2() 22{ 23 return uColorB.color2; 24} 25 26vec4 getWorld() 27{ 28 return uDefaultB.uWorld * P; 29 oVert.v2 = vec4(1); 30} 31 32