root/OpenSceneGraph/trunk/examples/osgshadowtexture/CreateShadowedScene.h @ 1697

Revision 1697, 455 bytes (checked in by robert, 12 years ago)

Ported osgGLUT based src/Demos across to being osgProducer based, and placed
them in the new examples/ directory.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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.
10extern osg::Group* createShadowedScene(osg::Node* shadower,osg::Node* shadowed,const osg::Vec3& lightPosition,float radius,unsigned int textureUnit=1);
11
12#endif
Note: See TracBrowser for help on using the browser.