diff options
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_BucketManager.cpp')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_BucketManager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/gameengine/Rasterizer/RAS_BucketManager.cpp b/source/gameengine/Rasterizer/RAS_BucketManager.cpp index 4ce072dd7cc..091e78c7b28 100644 --- a/source/gameengine/Rasterizer/RAS_BucketManager.cpp +++ b/source/gameengine/Rasterizer/RAS_BucketManager.cpp @@ -141,10 +141,17 @@ void RAS_BucketManager::Renderbuckets( } for (bucket = m_MaterialBuckets.begin(); bucket != m_MaterialBuckets.end(); ++bucket) + { + if((*bucket)->GetPolyMaterial()->IsZSort()) + rasty->SetAlphaTest(true); + else + rasty->SetAlphaTest(false); + (*bucket)->Render(cameratrans,rasty,rendertools); - + } + rasty->SetAlphaTest(false); + RenderAlphaBuckets(cameratrans, rasty, rendertools); - RAS_MaterialBucket::EndFrame(); } |