From b0adc3b8710bab4e67a28a001836b9d3d51cb3cc Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sat, 30 Dec 2023 12:19:17 +0100 Subject: lots of things aaaaaaaa Signed-off-by: Anna (navi) Figueiredo Gomes --- shader.frag | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shader.frag') 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); } -- cgit v1.2.3