diff options
Diffstat (limited to 'intermediate/triangle.glsl')
-rw-r--r-- | intermediate/triangle.glsl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/intermediate/triangle.glsl b/intermediate/triangle.glsl new file mode 100644 index 0000000..ed6052f --- /dev/null +++ b/intermediate/triangle.glsl @@ -0,0 +1,30 @@ +#ifdef DESC +[program] +type: graphics +vertex: main +fragment: main + +[attribute] +name: position +type: vec2 + +[target] +name: colour +type: vec4 +#endif + +#ifdef VERTEX_SHADER + +void main() { + gl_Position = vec4(position, 0.0, 1.0); +} + +#endif + +#ifdef FRAGMENT_SHADER + +void main() { + colour = 1.0.xxxx; +} + +#endif |