Moved the shadow creation code into a seperate CreateShadowedScene header and source,

and exposed just the basic createShadowedScene function in the header.
This commit is contained in:
Robert Osfield
2002-11-21 15:35:51 +00:00
parent 3f97d6a44d
commit a545f3b48c
11 changed files with 436 additions and 401 deletions

View File

@@ -12,6 +12,7 @@
#include <osg/Math>
// for the grid data..
#include "../osghangglide/terrain_coords.h"
osg::Geode* createShapes()
@@ -19,11 +20,10 @@ osg::Geode* createShapes()
osg::Geode* geode = osgNew osg::Geode();
// ---------------------------------------
// Set up a StateSet to make the cube red
// Set up a StateSet to texture the objects
// ---------------------------------------
osg::StateSet* stateset = osgNew osg::StateSet();
osg::Image* image = osgDB::readImageFile("Images/lz.rgb");
if (image)
{