aboutsummaryrefslogtreecommitdiff
path: root/shaders/fragment.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/fragment.frag')
-rw-r--r--shaders/fragment.frag6
1 files changed, 4 insertions, 2 deletions
diff --git a/shaders/fragment.frag b/shaders/fragment.frag
index 60791c2..b078a58 100644
--- a/shaders/fragment.frag
+++ b/shaders/fragment.frag
@@ -1,9 +1,11 @@
#version 330 core
+in vec2 texcoord_frag;
+
out vec4 out_color;
-uniform vec3 triangle_color;
+uniform sampler2D tex;
void main() {
- out_color = vec4(triangle_color, 1.0);
+ out_color = texture(tex, texcoord_frag);
} \ No newline at end of file