13#ifndef OSGUTIL_HIGHLIGHTMAPGENERATOR_
14#define OSGUTIL_HIGHLIGHTMAPGENERATOR_
33 float specular_exponent,
34 int texture_size = 64);
54 float v = -ldir_ * (R / R.
length());
Vec3f Vec3
Definition Vec3:21
Vec4f Vec4
Definition Vec4:21
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
value_type length() const
Length of the vector = sqrt( vec .
Definition Vec3f:176
value_type & w()
Definition Vec4f:90
CubeMapGenerator(int texture_size=64)
virtual ~HighlightMapGenerator()
Definition HighlightMapGenerator:39
virtual osg::Vec4 compute_color(const osg::Vec3 &R) const
Override this method to define how colors are computed.
Definition HighlightMapGenerator:52
HighlightMapGenerator & operator=(const HighlightMapGenerator &)
Definition HighlightMapGenerator:40
HighlightMapGenerator(const HighlightMapGenerator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
HighlightMapGenerator(const osg::Vec3 &light_direction, const osg::Vec4 &light_color, float specular_exponent, int texture_size=64)
#define OSGUTIL_EXPORT
Definition Export:40