mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
use depth mask when writing to depth
This commit is contained in:
parent
21e7466670
commit
2a218d418f
5 changed files with 17 additions and 8 deletions
|
@ -3316,6 +3316,9 @@ static void _emitExportCode(LatteDecompilerShaderContext* shaderContext, LatteDe
|
|||
cemu_assert_unimplemented(); // ukn
|
||||
}
|
||||
|
||||
if (!shaderContext->shader->depthMask)
|
||||
return;
|
||||
|
||||
src->add("out.passDepth = ");
|
||||
_emitExportGPRReadCode(shaderContext, cfInstruction, LATTE_DECOMPILER_DTYPE_FLOAT, 0);
|
||||
src->add(".x");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue