searched, but found nothing, sorry if the question isnt new:
I made fog and set it to node
node->setMaterialFlag(video::EMF_FOG_ENABLE , true);
i activate shadow with
node->addShadowVolumeSceneNode();
But the shadows are not fog'ged, how can set the EMF_FOG_ENABLE to the ShadowVolumeSceneNode, please ?
Fog and stencil shadows
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
the method addShadowVolumeSceneNode() returns a pointer to the created shadow. So, you can do this:
greetz, rincewind
Code: Select all
scene::ISceneNode shadow = node->addShadowVolumeSceneNode();
shadow->setMaterialFlag(video::EMF_FOG_ENABLE,true);
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
-
- Posts: 199
- Joined: Sun Aug 24, 2003 5:47 pm
- Location: Germany
but instead of the other nodes (billboard, animatedmesh) no fog:
Code: Select all
IShadowVolumeSceneNode* shadows = node->addShadowVolumeSceneNode();
shadows->setMaterialFlag(video::EMF_FOG_ENABLE , true);