mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: remove incorrect Y-flip in postprocess vertex shader
postprocess.vert.glsl had `TexCoord.y = 1.0 - TexCoord.y` which inverted the vertical sampling of the scene texture. Vulkan textures use v=0 at the top, matching framebuffer row 0, so no flip is needed. The camera already flips the projection matrix (mat[1][1] *= -1) so the scene is rendered correctly oriented; the extra inversion in the postprocess pass flipped FXAA output upside down. Fixes: FXAA shows camera upside down Also fixes: FSR1 upscale and FSR3 sharpen passes (same vertex shader)
This commit is contained in:
parent
4c1bc842bc
commit
793c2b5611
2 changed files with 3 additions and 1 deletions
|
|
@ -6,5 +6,7 @@ void main() {
|
|||
// Fullscreen triangle trick: 3 vertices, no vertex buffer
|
||||
TexCoord = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||||
gl_Position = vec4(TexCoord * 2.0 - 1.0, 0.0, 1.0);
|
||||
TexCoord.y = 1.0 - TexCoord.y; // flip Y for Vulkan
|
||||
// No Y-flip: scene textures use Vulkan convention (v=0 at top),
|
||||
// and NDC y=-1 already maps to framebuffer top, so the triangle
|
||||
// naturally samples the correct row without any inversion.
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue