1#version 430 2 3// Verify that matching by block name is working, not 4// instance name, which was at one point failing on this 5// test due to E.g anon@1 being different blocks for 6// different compilation units 7 8layout (std140) uniform Block 9{ 10 mat4 uProj; 11 mat4 uWorld; 12}; 13 14out Vertex 15{ 16 vec4 v1; 17 vec4 v2; 18}; 19 20layout (std140) uniform ColorBlock 21{ 22 vec4 color1; 23 vec4 color2; 24}; 25 26vec4 getWorld(); 27vec4 getColor2(); 28 29out vec4 oColor; 30 31void 32main() 33{ 34 oColor = color1 * getColor2(); 35 v1 = color1; 36 37 gl_Position = uProj * getWorld(); 38} 39