Entity* entity->setCastShadows(false);

material material_name
{
receive_shadows off
transparency_casts_shadows off

technique
{
pass
{
}
}
}

void Ogre::Material::setReceiveShadows ( bool  enabled  );
void Ogre::Material::setTransparencyCastsShadows ( bool  enabled  );

bool bShadow = true;
Ogre::Entity* ent = ...;
Ogre::MaterialPtr mat = ent->getSubEntity(1)->getMaterial();
mat->setReceiveShadows(bShadow);
mat->setTransparencyCastsShadows(bShadow);
mat = ent->getSubEntity(2)->getMaterial();
mat->setReceiveShadows(bShadow);
mat->setTransparencyCastsShadows(bShadow);
ent->setCastShadows(bShadow);


블로그 이미지

영스파파

3D 세상을 만들기 위한 프로그래밍 정보들을 정리하는 공간

,