Implemented loading shaders from file.

This commit is contained in:
2024-09-13 11:12:59 +02:00
parent ba49a1e47a
commit d6745226a1
6 changed files with 84 additions and 24 deletions

View File

@@ -0,0 +1,12 @@
#version 460
const vec2 vertices[3] = vec2[3](
vec2(-0.5, 0.5),
vec2( 0.5, 0.5),
vec2( 0.0, -0.5)
);
void main()
{
gl_Position = vec4(vertices[gl_VertexIndex], 0.0, 1.0);
}