Added Macro's new cube map generation classes and osgcubemap demo.
This commit is contained in:
16
src/osgUtil/HalfWayMapGenerator.cpp
Normal file
16
src/osgUtil/HalfWayMapGenerator.cpp
Normal 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 ©, const osg::CopyOp ©op)
|
||||
: CubeMapGenerator(copy, copyop),
|
||||
ldir_(copy.ldir_)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user