1 struct MaterialParameters
7 MaterialParameters material;
14 #pragma MSP stage(vertex)
15 layout(location=0) in vec4 position;
18 gl_Position = mvp*position;
21 #pragma MSP stage(fragment)
22 layout(location=0) out vec4 frag_color;
25 frag_color = material.color;
28 /* Expected output: vertex
29 layout(binding=48) uniform Transform
33 layout(location=0) in vec4 position;
36 gl_Position = mvp*position;
40 /* Expected output: fragment
41 struct MaterialParameters
45 layout(binding=64) uniform Material
47 MaterialParameters material;
49 layout(location=0) out vec4 frag_color;
52 frag_color = material.color;