BGE: Make sure we are writting to the depth buffer when rendering alpha polygons for shadows. Otherwise alpha shadows won't work\!
This commit is contained in:
@@ -148,7 +148,8 @@ void RAS_BucketManager::RenderAlphaBuckets(
|
|||||||
// Having depth masks disabled/enabled gives different artifacts in
|
// Having depth masks disabled/enabled gives different artifacts in
|
||||||
// case no sorting is done or is done inexact. For compatibility, we
|
// case no sorting is done or is done inexact. For compatibility, we
|
||||||
// disable it.
|
// disable it.
|
||||||
rasty->SetDepthMask(RAS_IRasterizer::KX_DEPTHMASK_DISABLED);
|
if (rasty->GetDrawingMode() != RAS_IRasterizer::KX_SHADOW)
|
||||||
|
rasty->SetDepthMask(RAS_IRasterizer::KX_DEPTHMASK_DISABLED);
|
||||||
|
|
||||||
OrderBuckets(cameratrans, m_AlphaBuckets, slots, true);
|
OrderBuckets(cameratrans, m_AlphaBuckets, slots, true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user