summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 20:23:52 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-21 20:23:52 +1000
commitaf79d7428895413eb64bcb640e07ebb26b1c19f3 (patch)
tree2896b9db9be810ca0ee914151d50ca3a3fe325f2 /assets
parent66b1e02847e08b8e66e9969f0a3d138c15cc70f4 (diff)
quads kinda work
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/terrain.frag4
-rw-r--r--assets/shaders/terrain.vert4
2 files changed, 7 insertions, 1 deletions
diff --git a/assets/shaders/terrain.frag b/assets/shaders/terrain.frag
index 5bce13b..739ff83 100644
--- a/assets/shaders/terrain.frag
+++ b/assets/shaders/terrain.frag
@@ -2,6 +2,8 @@
out vec4 FragColor;
+in vec4 Color;
+
void main() {
- FragColor = vec4(1.0);
+ FragColor = Color;
} \ No newline at end of file
diff --git a/assets/shaders/terrain.vert b/assets/shaders/terrain.vert
index 5af1560..32b43b3 100644
--- a/assets/shaders/terrain.vert
+++ b/assets/shaders/terrain.vert
@@ -8,6 +8,10 @@ uniform Camera {
vec4 viewPos;
} cam;
+out vec4 Color;
+
void main() {
gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0);
+
+ Color = vec4(inPosition.y / 255.0);
} \ No newline at end of file