use depth mask when writing to depth

This commit is contained in:
Samuliak 2025-01-17 14:51:25 +01:00
parent 21e7466670
commit 2a218d418f
No known key found for this signature in database
5 changed files with 17 additions and 8 deletions

View file

@ -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");