Inheritance diagram for osgUtil::HighlightMapGenerator:
Public Member Functions | |
HighlightMapGenerator (const osg::Vec3 &light_direction, const osg::Vec4 &light_color, float specular_exponent, int texture_size=64) | |
HighlightMapGenerator (const HighlightMapGenerator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
Protected Member Functions | |
virtual | ~HighlightMapGenerator () |
HighlightMapGenerator & | operator= (const HighlightMapGenerator &) |
virtual osg::Vec4 | compute_color (const osg::Vec3 &R) const |
Override this method to define how colors are computed. |
The vector-color association is: C = (R dot (-L)) ^ n, where C is the resulting color, R is the reflection vector, L is the light direction and n is the specular exponent.
|
|
|
|
|
|
|
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. |
|
|