diff options
Diffstat (limited to 'res/shaders/light_cube.vs')
-rw-r--r-- | res/shaders/light_cube.vs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/res/shaders/light_cube.vs b/res/shaders/light_cube.vs new file mode 100644 index 0000000..63a9758 --- /dev/null +++ b/res/shaders/light_cube.vs @@ -0,0 +1,11 @@ +#version 330 core + +layout (location = 0) in vec3 a_pos; + +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; + +void main() { + gl_Position = projection * view * model * vec4(a_pos, 1.0); +} |