Added Macro's new cube map generation classes and osgcubemap demo.

This commit is contained in:
Robert Osfield
2002-10-10 12:44:38 +00:00
parent 6c0861ef80
commit 50652f389b
14 changed files with 652 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include <osgUtil/HalfWayMapGenerator>
using namespace osgUtil;
HalfWayMapGenerator::HalfWayMapGenerator(const osg::Vec3 &light_direction, int texture_size)
: CubeMapGenerator(texture_size),
ldir_(light_direction)
{
ldir_.normalize();
}
HalfWayMapGenerator::HalfWayMapGenerator(const HalfWayMapGenerator &copy, const osg::CopyOp &copyop)
: CubeMapGenerator(copy, copyop),
ldir_(copy.ldir_)
{
}