|
1234567891011121314151617181920212223242526272829303132333435 |
- -- GLSL.Vert --
-
- #version 120
-
- attribute vec2 in_Position;
-
- void main(void)
- {
- gl_Position = vec4(in_Position, 0.0, 1.0);
- }
-
- -- GLSL.Frag --
-
- #version 120
-
- void main(void)
- {
- gl_FragColor = vec4(0.7, 0.2, 0.5, 1.0);
- }
-
- -- HLSL.Vert --
-
- void main(float2 in_Position : POSITION,
- out float4 out_Position : POSITION)
- {
- out_Position = float4(in_Position, 0.0, 1.0);
- }
-
- -- HLSL.Frag --
-
- void main(out float4 out_FragColor : COLOR)
- {
- out_FragColor = float4(0.7, 0.2, 0.5, 1.0);
- }
-
|