BGE: Adding support for the Cast Only material option.

Note: This does not add support for the option in the viewport.
This commit is contained in:
2014-01-26 19:28:26 -08:00
parent 9d4b54b44f
commit e02b9c8a45
6 changed files with 18 additions and 2 deletions

View File

@@ -587,6 +587,9 @@ bool RAS_MaterialBucket::ActivateMaterial(const MT_Transform& cameratrans, RAS_I
if (rasty->GetDrawingMode() == RAS_IRasterizer::KX_SHADOW && !m_material->CastsShadows())
return false;
if (rasty->GetDrawingMode() != RAS_IRasterizer::KX_SHADOW && m_material->OnlyShadow())
return false;
if (!rasty->SetMaterial(*m_material))
return false;