15#ifndef OSGFX_SPECULARHIGHLIGHTS_
16#define OSGFX_SPECULARHIGHLIGHTS_
40 "Specular Highlights",
42 "This effect applies additive specular highlights at fragment level (instead "
43 "of OpenGL's vertex-level lighting) by using a cube map and reflective texgen. "
44 "A texture matrix is computed to rotate the cube map automatically; this makes "
45 "the specular effect consistent with respect to view direction and light position. "
46 "The user can choose which light should be used to compute the texture matrix.\n"
47 "This effect requires the GL_ARB_texture_env_add extension and one of the cube map "
48 "extensions (GL_EXT_texture_cube_map, GL_ARB_texture_cube_map or OpenGL v1.3).",
Vec4f Vec4
Definition Vec4:21
The osgFX library is a NodeKit that extends the core scene graph to provide a special effects framewo...
Definition AnisotropicLighting: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
void dirtyTechniques()
force rebuilding of techniques on next traversal
Definition Effect:207
void setTextureUnit(int n)
set the texture unit that will be used to apply the cube map
Definition SpecularHighlights:108
bool define_techniques()
abstract method to be implemented in derived classes; its purpose if to create the techniques that ca...
int getLightNumber() const
get the OpenGL light number
Definition SpecularHighlights:92
const osg::Vec4 & getSpecularColor() const
get the specular color
Definition SpecularHighlights:114
void setSpecularExponent(float e)
set the specular exponent
Definition SpecularHighlights:130
void setLightNumber(int n)
set the OpenGL light number that will be used in lighting computations
Definition SpecularHighlights:97
void setSpecularColor(const osg::Vec4 &color)
set the specular color
Definition SpecularHighlights:119
float getSpecularExponent() const
get the specular exponent
Definition SpecularHighlights:125
SpecularHighlights & operator=(const SpecularHighlights &)
Definition SpecularHighlights:79
int getTextureUnit() const
get the texture unit number
Definition SpecularHighlights:103
META_Effect(osgFX, SpecularHighlights, "Specular Highlights", "This effect applies additive specular highlights at fragment level (instead " "of OpenGL's vertex-level lighting) by using a cube map and reflective texgen. " "A texture matrix is computed to rotate the cube map automatically; this makes " "the specular effect consistent with respect to view direction and light position. " "The user can choose which light should be used to compute the texture matrix.\n" "This effect requires the GL_ARB_texture_env_add extension and one of the cube map " "extensions (GL_EXT_texture_cube_map, GL_ARB_texture_cube_map or OpenGL v1.3).", "Marco Jez")
virtual ~SpecularHighlights()
Definition SpecularHighlights:78
SpecularHighlights(const SpecularHighlights ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
#define OSGFX_EXPORT
Definition Export:27