Google

class OSGUTIL_EXPORT osgUtil::HalfWayMapGenerator

This cube map generator produces an Half-way vector map, useful for hardware-based specular lighting effects.

Inheritance:


Public Methods

[more] HalfWayMapGenerator(const osg::Vec3 &light_direction, int texture_size = 64)
[more] HalfWayMapGenerator(const HalfWayMapGenerator &copy, const osg::CopyOp &copyop)
[more]inline osg::Vec4 compute_color(const osg::Vec3 &R) const

Protected Methods

[more]virtual ~HalfWayMapGenerator()
[more]HalfWayMapGenerator& operator=(const HalfWayMapGenerator &)
[more]inline virtual osg::Vec4 compute_color(const osg::Vec3 &R) const


Inherited from CubeMapGenerator:

Public Methods

ovoid generateMap(bool use_osg_system = true)
oinline osg::Image* getImage(osg::TextureCubeMap::Face face)
oinline const osg::Image* getImage(osg::TextureCubeMap::Face face) const
oinline void set_pixel(int index, int c, int r, const osg::Vec4 &color)
oinline osg::Vec4 vector_to_color(const osg::Vec3 &vec)

Protected Methods

oinline static osg::Vec4 vector_to_color(const osg::Vec3 &vec)


Documentation

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.
o HalfWayMapGenerator(const osg::Vec3 &light_direction, int texture_size = 64)

o HalfWayMapGenerator(const HalfWayMapGenerator &copy, const osg::CopyOp &copyop)

ovirtual ~HalfWayMapGenerator()

oHalfWayMapGenerator& operator=(const HalfWayMapGenerator &)

oinline virtual osg::Vec4 compute_color(const osg::Vec3 &R) const

oinline osg::Vec4 compute_color(const osg::Vec3 &R) const


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.