summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/terrain.frag7
-rw-r--r--assets/shaders/terrain.vert13
2 files changed, 20 insertions, 0 deletions
diff --git a/assets/shaders/terrain.frag b/assets/shaders/terrain.frag
new file mode 100644
index 0000000..5bce13b
--- /dev/null
+++ b/assets/shaders/terrain.frag
@@ -0,0 +1,7 @@
+#version 410 core
+
+out vec4 FragColor;
+
+void main() {
+ FragColor = vec4(1.0);
+} \ No newline at end of file
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