diff options
Diffstat (limited to 'src/shaders/test.vert')
| -rw-r--r-- | src/shaders/test.vert | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/shaders/test.vert b/src/shaders/test.vert new file mode 100644 index 0000000..e68611d --- /dev/null +++ b/src/shaders/test.vert @@ -0,0 +1,19 @@ +#version 330 core + +layout (location = 0) in vec3 aPos; + +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; + +out vec4 vertexColor; +out vec4 lightColor; + +void main() +{ + gl_Position = projection * view * model * vec4(aPos, 1.0); + vertexColor = vec4(0.0, 0.5, 0.0, 1.0); + + lightColor = vec4(gl_Position.z, gl_Position.z, gl_Position.z, 1.0); +// lightColor = vec4(1.0,1.0,1.0,1.0); +} |
