]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/function_arguments_inline.glsl
Remake the desertpillars demo using modern techniques
[libs/gl.git] / tests / glsl / function_arguments_inline.glsl
1 uniform mat4 mvp;
2
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 position;
5 vec4 transform_position(vec4 p)
6 {
7         return mvp*p;
8 }
9 void main()
10 {
11         gl_Position = transform_position(position);
12 }
13
14 /* Expected output: vertex
15 layout(location=0) uniform mat4 mvp;
16 layout(location=0) in vec4 position;
17 void main()
18 {
19         gl_Position = mvp*position;
20 }
21 */