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);
'Ogre3D' 카테고리의 다른 글
setTextureVScroll() 함수가 실행이 안 되는 경우 (0) | 2011.03.24 |
---|---|
Ogre 쉐이더 설정 방법 - 칼라, 흑백 전환 쉐이더 코드 (0) | 2010.12.27 |
Ogre에서 2D 화면 좌표를 3D 공간 좌표로 변환하는 방법 (0) | 2010.12.20 |
Ogre에서 화면에 2D 오브젝트 그리기 (0) | 2010.12.20 |
Ogre에서 3D 공간 좌표를 2D 화면 좌표로 변환하는 방법 (0) | 2010.12.20 |