From 44e48ddc2785b037abd202a8d38b2ef2e8c36600 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 14 Dec 2024 23:15:34 +1100 Subject: initial commit --- intermediate/triangle.glsl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 intermediate/triangle.glsl (limited to 'intermediate') 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 -- cgit v1.2.3-54-g00ecf