Latte: FragCoord w should not be reciprocal

Fixes rendering in various Virtual Console DS titles
This commit is contained in:
Exzap 2023-01-26 10:07:10 +01:00
parent 43b5ad2f1c
commit 9bbfd33842

View File

@ -304,8 +304,7 @@ namespace LatteDecompiler
} }
else if (decompilerContext->shaderType == LatteConst::ShaderType::Pixel) else if (decompilerContext->shaderType == LatteConst::ShaderType::Pixel)
{ {
//fCStr_shaderSource->append("#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale.xy+uf_fragCoordScale.zw,gl_FragCoord.zw)" STR_LINEBREAK); src->add("#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale.xy,gl_FragCoord.z, 1.0/gl_FragCoord.w)" _CRLF);
src->add("#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale.xy,gl_FragCoord.zw)" _CRLF);
} }
src->add("#else" _CRLF); src->add("#else" _CRLF);
// OpenGL defines // OpenGL defines