summaryrefslogtreecommitdiff
path: root/assets/shaders/terrain.vert
diff options
context:
space:
mode:
Diffstat (limited to 'assets/shaders/terrain.vert')
-rw-r--r--assets/shaders/terrain.vert4
1 files changed, 4 insertions, 0 deletions
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