diff options
author | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-27 21:05:04 +1100 |
---|---|---|
committer | omnisci3nce <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-27 21:05:04 +1100 |
commit | 80cdd4f2b1c2a3355926b59a85e14100b3daa7b7 (patch) | |
tree | 0c7787806aeb5613462e4e966fccd9f4de1c57b7 /assets | |
parent | 90248a622203da205916ac89a1ac144d363cf37d (diff) |
simple shaders for testing
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/triangle.frag | 8 | ||||
-rw-r--r-- | assets/shaders/triangle.vert | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/assets/shaders/triangle.frag b/assets/shaders/triangle.frag new file mode 100644 index 0000000..d26e5c4 --- /dev/null +++ b/assets/shaders/triangle.frag @@ -0,0 +1,8 @@ +#version 450 +#extension GL_ARB_separate_shader_objects : enable + +layout(location = 0) out vec4 out_colour; + +void main() { + out_colour = vec4(1.0); +}
\ No newline at end of file diff --git a/assets/shaders/triangle.vert b/assets/shaders/triangle.vert new file mode 100644 index 0000000..0518c62 --- /dev/null +++ b/assets/shaders/triangle.vert @@ -0,0 +1,8 @@ +#version 450 +#extension GL_ARB_separate_shader_objects : enable + +layout(location = 0) in vec3 in_position; + +void main() { + gl_Position = vec4(in_position, 1.0); +}
\ No newline at end of file |