diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-02-10 12:28:47 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-02-10 12:28:47 +0400 |
commit | f75ca60a1c55388334a3b85934bd23a122c6b92c (patch) | |
tree | a417cde42a9bdee7d0619557b04ad967ad3ec800 /source/gameengine/Rasterizer | |
parent | 63af7068ad17f30a526ccb81fbe74253b064bc89 (diff) |
BGE: Make sure we are writting to the depth buffer when rendering alpha polygons for shadows. Otherwise alpha shadows won't work\!
Diffstat (limited to 'source/gameengine/Rasterizer')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_BucketManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Rasterizer/RAS_BucketManager.cpp b/source/gameengine/Rasterizer/RAS_BucketManager.cpp index df72056565b..b2b766b65e8 100644 --- a/source/gameengine/Rasterizer/RAS_BucketManager.cpp +++ b/source/gameengine/Rasterizer/RAS_BucketManager.cpp @@ -148,7 +148,8 @@ void RAS_BucketManager::RenderAlphaBuckets( // Having depth masks disabled/enabled gives different artifacts in // case no sorting is done or is done inexact. For compatibility, we // 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); |