mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 15:31:18 +12:00
fix: writing to depth from a fragment shader
This commit is contained in:
parent
1bcdade83e
commit
a50ce997df
4 changed files with 25 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue