summaryrefslogtreecommitdiff
path: root/assets/shaders/terrain.vert
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 17:48:00 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 17:48:00 +1000
commit66b1e02847e08b8e66e9969f0a3d138c15cc70f4 (patch)
treea598a4a1716fa985ab4359a60f6a2c93d2ee390b /assets/shaders/terrain.vert
parent9f1bfa75490bbdf22dd57ff17352d2736a0891fa (diff)
terrain/hmap skeleton
Diffstat (limited to 'assets/shaders/terrain.vert')
-rw-r--r--assets/shaders/terrain.vert13
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