diff options
author | quou <quou@disroot.org> | 2024-12-14 23:15:34 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-14 23:19:17 +1100 |
commit | 44e48ddc2785b037abd202a8d38b2ef2e8c36600 (patch) | |
tree | f58887ce48f7fdbf6dcca365b2a1b02a34e1b355 /intermediate/triangle.glsl |
initial commit
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 |