From 89464b769f34efbecc562489aa94d3d193cc3a94 Mon Sep 17 00:00:00 2001 From: nek0 Date: Wed, 17 May 2023 06:05:05 +0200 Subject: [PATCH] add comment --- shadersrc/textured_lit.frag | 1 + 1 file changed, 1 insertion(+) diff --git a/shadersrc/textured_lit.frag b/shadersrc/textured_lit.frag index efdf7a9..9960e4e 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() { + // Flip y coordinate of UVs to fix display float y = texCoord.y * -1; vec3 color = texture(tex1, vec2(texCoord.x ,y)).xyz; outFragColor = vec4(color, inColor.w);