fix: writing to depth from a fragment shader

This commit is contained in:
Samuliak 2024-08-07 21:14:31 +02:00
parent 1bcdade83e
commit a50ce997df
4 changed files with 25 additions and 22 deletions

View file

@ -272,9 +272,9 @@ namespace LatteDecompiler
}
// generate depth output for pixel shader
if (decompilerContext->shader->pixelDepthOutputMask)
if (decompilerContext->shader->depthWritten)
{
src->add("float passDepth [[depth(any)]];" _CRLF);
src->add("float passDepth [[depth]];" _CRLF);
}
src->add("};" _CRLF _CRLF);