Fix depth function

This commit is contained in:
ExMatics HydrogenC
2024-10-10 21:15:46 +08:00
parent 561d40fd71
commit 7b4a9f1a63
3 changed files with 24 additions and 0 deletions
@@ -301,7 +301,11 @@ bool ReflectionsPass::setupResources()
psDesc.DepthEnable = true;
if (_psProbe->Init(psDesc))
return true;
#if FLAX_REVERSE_Z
psDesc.DepthFunc = ComparisonFunc::Less;
#else
psDesc.DepthFunc = ComparisonFunc::Greater;
#endif
psDesc.CullMode = CullMode::Inverted;
if (_psProbeInside->Init(psDesc))
return true;