vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CreateShadowedScene.h
Go to the documentation of this file.
1 #ifndef CREATESHADOWEDSCENE_H
2 #define CREATESHADOWEDSCENE_H
3 
4 #include <osg/Node>
5 #include <osg/Vec3>
6 
7 // function to create a lightsource which contain a shadower and showed subgraph,
8 // the showadowed subgrph has a cull callback to fire off a pre render to texture
9 // of the shadowed subgraph.
10 extern osg::Group* createShadowedScene(osg::Node* shadower,osg::Node* shadowed,const osg::Vec3& lightPosition,float radius,unsigned int textureUnit=1);
11 
12 #endif
13 
14 //$Id: CreateShadowedScene.h 1 2010-10-27 12:01:29Z xbezdeka $