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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user