Пример #1
0
void Mesh::Initialize()
{
	Property *shadowCasterProperty = FindProperty("castShadows");
	if (shadowCasterProperty != NULL)
		m_isShadowCaster = shadowCasterProperty->GetIntValue() == 1;

	Property *shadowReceiverProperty = FindProperty("receiveshadows");
	if (shadowReceiverProperty != NULL)
		m_isShadowReceiver = shadowReceiverProperty->GetIntValue() == 1;
}