From 6f6716e69ae82af709677d86fa811ef4c9b59166 Mon Sep 17 00:00:00 2001 From: nek0 Date: Wed, 17 May 2023 06:02:56 +0200 Subject: [PATCH] flip uv coordintes right --- shadersrc/textured_lit.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shadersrc/textured_lit.frag b/shadersrc/textured_lit.frag index f1bb1c1..efdf7a9 100644 --- a/shadersrc/textured_lit.frag +++ b/shadersrc/textured_lit.frag @@ -19,6 +19,7 @@ layout(set = 2, binding = 0) uniform sampler2D tex1; void main() { - vec3 color = texture(tex1,texCoord).xyz; + float y = texCoord.y * -1; + vec3 color = texture(tex1, vec2(texCoord.x ,y)).xyz; outFragColor = vec4(color, inColor.w); }