[osg-users] Trouble with NodeMask and shadows
Werner Modenbach
Werner.Modenbach at texion.eu
Mon Aug 22 02:53:59 PDT 2016
Hi!
I have a little issue with a scene with shadows.
I need to have within a scene that has shadows an object that doesn't
cast and doesn't receive shadows.
Here is what I do:
constintReceivesShadowTraversalMask=0x1;
constintCastsShadowTraversalMask=0x2;
intmask=geode->getNodeMask()&~CastsShadowTraversalMask&~ReceivesShadowTraversalMask;
geode->setNodeMask(mask);
The geode doesn't cast shadows as expected. But unfortunately it receives shadow.
I have to mention that the object is in the transparent bin.
How can I prevent the object from receiving shadows?
- Werner -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160822/9e990bd6/attachment-0001.htm>
More information about the osg-users
mailing list