|
OSG
3.4.0
|
#include <HighlightMapGenerator.h>


Protected Member Functions | |
| virtual | ~HighlightMapGenerator () |
| HighlightMapGenerator & | operator= (const HighlightMapGenerator &) |
| virtual osg::Vec4 | compute_color (const osg::Vec3 &R) const |
Protected Member Functions inherited from osgUtil::CubeMapGenerator | |
| virtual | ~CubeMapGenerator () |
| CubeMapGenerator & | operator= (const CubeMapGenerator &) |
| void | set_pixel (int index, int c, int r, const osg::Vec4 &color) |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
Static Protected Member Functions inherited from osgUtil::CubeMapGenerator | |
| static osg::Vec4 | vector_to_color (const osg::Vec3 &vec) |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
This cube map generator produces a specular highlight map. 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.
Definition at line 28 of file HighlightMapGenerator.h.
| osgUtil::HighlightMapGenerator::HighlightMapGenerator | ( | const osg::Vec3 & | light_direction, |
| const osg::Vec4 & | light_color, | ||
| float | specular_exponent, | ||
| int | texture_size = 64 |
||
| ) |
| osgUtil::HighlightMapGenerator::HighlightMapGenerator | ( | const HighlightMapGenerator & | copy, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
| ) |
|
inlineprotectedvirtual |
Definition at line 39 of file HighlightMapGenerator.h.
|
inlineprotectedvirtual |
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.
Definition at line 52 of file HighlightMapGenerator.h.

|
inlineprotected |
Definition at line 40 of file HighlightMapGenerator.h.
1.8.8