summaryrefslogtreecommitdiff
path: root/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'shader.frag')
-rw-r--r--shader.frag4
1 files changed, 3 insertions, 1 deletions
diff --git a/shader.frag b/shader.frag
index c9e559f..2209f4e 100644
--- a/shader.frag
+++ b/shader.frag
@@ -1,8 +1,10 @@
#version 450
+layout(binding = 1) uniform sampler2D texture_sampler;
layout(location = 0) in vec3 fragColor;
+layout(location = 1) in vec2 frag_text_coords;
layout(location = 0) out vec4 outColor;
void main() {
- outColor = vec4(fragColor, 1.0);
+ outColor = vec4(fragColor * texture(texture_sampler, frag_text_coords).rgb, 1.0);
}