#include 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_) { }