From 4d97229d228ded4f4bab23c5659be1196aa7af17 Mon Sep 17 00:00:00 2001 From: BearOso Date: Sun, 29 Jan 2023 17:18:48 -0600 Subject: [PATCH] newpixie: Don't flip geometry coordinates, flip texcoords. --- crt/shaders/newpixie/newpixie-crt.slang | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crt/shaders/newpixie/newpixie-crt.slang b/crt/shaders/newpixie/newpixie-crt.slang index f90eb0d..c3d58f1 100644 --- a/crt/shaders/newpixie/newpixie-crt.slang +++ b/crt/shaders/newpixie/newpixie-crt.slang @@ -81,9 +81,8 @@ layout(location = 0) out vec2 vTexCoord; void main() { - vec4 modpos = vec4(Position.x, 1.-Position.y, Position.z, Position.w); - gl_Position = global.MVP * modpos; - vTexCoord = TexCoord; + gl_Position = global.MVP * Position; + vTexCoord = vec2(TexCoord.x, 1.0 - TexCoord.y); } #pragma stage fragment