summaryrefslogtreecommitdiff
path: root/assets/shaders/terrain.frag
diff options
context:
space:
mode:
Diffstat (limited to 'assets/shaders/terrain.frag')
-rw-r--r--assets/shaders/terrain.frag6
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/shaders/terrain.frag b/assets/shaders/terrain.frag
index 739ff83..0cc76c8 100644
--- a/assets/shaders/terrain.frag
+++ b/assets/shaders/terrain.frag
@@ -3,7 +3,11 @@
out vec4 FragColor;
in vec4 Color;
+in vec2 TexCoord;
+
+uniform sampler2D TextureSlot1;
void main() {
- FragColor = Color;
+ vec4 tex_color = texture(TextureSlot1, TexCoord);
+ FragColor = Color * tex_color;
} \ No newline at end of file