diff options
Diffstat (limited to 'assets/shaders/terrain.vert')
-rw-r--r-- | assets/shaders/terrain.vert | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/assets/shaders/terrain.vert b/assets/shaders/terrain.vert new file mode 100644 index 0000000..5af1560 --- /dev/null +++ b/assets/shaders/terrain.vert @@ -0,0 +1,13 @@ +#version 410 core + +layout(location = 0) in vec3 inPosition; + +uniform Camera { + mat4 view; + mat4 proj; + vec4 viewPos; +} cam; + +void main() { + gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0); +}
\ No newline at end of file |