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