osgUtil::HalfWayMapGenerator Class Reference
List of all members.
Detailed Description
This cube map generator produces an Half-way vector map, useful for hardware-based specular lighting effects. It computes: C = normalize(R - L), where C is the resulting color, R is the reflection vector and L is the light direction.
Constructor & Destructor Documentation
osgUtil::HalfWayMapGenerator::HalfWayMapGenerator |
( |
const osg::Vec3 & |
light_direction, |
|
|
int |
texture_size = 64 | |
|
) |
| | |
virtual osgUtil::HalfWayMapGenerator::~HalfWayMapGenerator |
( |
|
) |
[inline, protected, virtual] |
Member Function Documentation
osg::Vec4 osgUtil::HalfWayMapGenerator::compute_color |
( |
const osg::Vec3 & |
R |
) |
const [inline, protected, virtual] |
The documentation for this class was generated from the following file: