#include <shadowcallback.h>
Public Member Functions | |
ShadowDrawCallback (osg::Vec3 posOfLight, osg::CameraNode *cameraNode, osg::TexGenNode *texgenNode) | |
creates the shadow draw callback for the shadowed scene note that the sky and the ground is not shadowed, use any playground for having shadows on the roof | |
virtual void | operator() (osg::Node *node, osg::NodeVisitor *nv) |
Protected Member Functions | |
virtual | ~ShadowDrawCallback () |
Protected Attributes | |
osg::Vec3 | posOfLight |
osg::ref_ptr< osg::CameraNode > | _cameraNode |
osg::ref_ptr< osg::TexGenNode > | _texgenNode |
ShadowDrawCallback | ( | osg::Vec3 | posOfLight, | |
osg::CameraNode * | cameraNode, | |||
osg::TexGenNode * | texgenNode | |||
) |
creates the shadow draw callback for the shadowed scene note that the sky and the ground is not shadowed, use any playground for having shadows on the roof
~ShadowDrawCallback | ( | ) | [protected, virtual] |
void operator() | ( | osg::Node * | node, | |
osg::NodeVisitor * | nv | |||
) | [virtual] |
osg::ref_ptr<osg::CameraNode> _cameraNode [protected] |
osg::ref_ptr<osg::TexGenNode> _texgenNode [protected] |
osg::Vec3 posOfLight [protected] |