Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
getSMGR()->loadScene("map/map.irr"); ISceneNode *scene_node1[30]; scene_node1[1] = getSMGR()->getSceneNodeFromName("tree1"); i can t add scene_node1[1]->addShadowVolumeSceneNode(); how to add shadow ? thank you |
||||
|
Just test if your scene node is of the type of IAnimatedMeshSceneNode by using getType and then cast it to IAnimatedMeshSceneNode. You can then call addShadowVolumeSceneNode();. |
||||
|
|