OSG
3.4.0
|
#include <HalfWayMapGenerator.h>
Protected Member Functions | |
virtual | ~HalfWayMapGenerator () |
HalfWayMapGenerator & | operator= (const HalfWayMapGenerator &) |
virtual osg::Vec4 | compute_color (const osg::Vec3 &R) const |
![]() | |
virtual | ~CubeMapGenerator () |
CubeMapGenerator & | operator= (const CubeMapGenerator &) |
void | set_pixel (int index, int c, int r, const osg::Vec4 &color) |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
static osg::Vec4 | vector_to_color (const osg::Vec3 &vec) |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
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.
Definition at line 28 of file HalfWayMapGenerator.h.
osgUtil::HalfWayMapGenerator::HalfWayMapGenerator | ( | const osg::Vec3 & | light_direction, |
int | texture_size = 64 |
||
) |
osgUtil::HalfWayMapGenerator::HalfWayMapGenerator | ( | const HalfWayMapGenerator & | copy, |
const osg::CopyOp & | copyop | ||
) |
|
inlineprotectedvirtual |
Definition at line 34 of file HalfWayMapGenerator.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 45 of file HalfWayMapGenerator.h.
|
inlineprotected |
Definition at line 35 of file HalfWayMapGenerator.h.