Inheritance diagram for osgUtil::HalfWayMapGenerator:

Public Member Functions | |
| HalfWayMapGenerator (const osg::Vec3 &light_direction, int texture_size=64) | |
| HalfWayMapGenerator (const HalfWayMapGenerator ©, const osg::CopyOp ©op) | |
Protected Member Functions | |
| virtual | ~HalfWayMapGenerator () |
| HalfWayMapGenerator & | operator= (const HalfWayMapGenerator &) |
| virtual osg::Vec4 | compute_color (const osg::Vec3 &R) const |
| Override this method to define how colors are computed. | |
It computes: C = normalize(R - L), where C is the resulting color, R is the reflection vector and L is the light direction.
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
Override this method to define how colors are computed. The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. Implements osgUtil::CubeMapGenerator. |
|
|
|