15#ifndef OSGFX_ANISOTROPICLIGHTING_
16#define OSGFX_ANISOTROPICLIGHTING_
48 "Anisotropic Lighting",
50 "This single-pass effect implements a sort of anisotropic "
51 "lighting that replaces the standard OpenGL lighting model.\n"
52 "The final color of vertices is not computed directly, it is "
53 "the result of a texture lookup on a user-supplied lighting "
54 "image map. A vertex program is used to compute the s and t "
55 "texture coordinates as follows: s = (N dot H) ; t = (N dot L) "
56 "where N is the vertex normal, L is the light-to-vertex vector, "
57 "H is the half-way vector. This is a good example of how you "
58 "can use the State::getInitialViewMatrix() method to retrieve "
59 "the view matrix and perform view-dependant effects without "
60 "fakes of any kind.\n"
61 "This effect requires the ARB_vertex_program extension.",
70 inline const osg::Image* getLightingMap()
const;
76 inline int getLightNumber()
const;
79 inline void setLightNumber(
int n);
Definition AnisotropicLighting:41
void setLightNumber(int n)
Definition AnisotropicLighting:114
virtual ~AnisotropicLighting()
Definition AnisotropicLighting:82
void setLightingMap(osg::Image *image)
Definition AnisotropicLighting:104
META_Effect(osgFX, AnisotropicLighting, "Anisotropic Lighting", "This single-pass effect implements a sort of anisotropic " "lighting that replaces the standard OpenGL lighting model.\n" "The final color of vertices is not computed directly, it is " "the result of a texture lookup on a user-supplied lighting " "image map. A vertex program is used to compute the s and t " "texture coordinates as follows: s = (N dot H) ; t = (N dot L) " "where N is the vertex normal, L is the light-to-vertex vector, " "H is the half-way vector. This is a good example of how you " "can use the State::getInitialViewMatrix() method to retrieve " "the view matrix and perform view-dependant effects without " "fakes of any kind.\n" "This effect requires the ARB_vertex_program extension.", "Marco Jez")
AnisotropicLighting(const AnisotropicLighting ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
int getLightNumber() const
Definition AnisotropicLighting:109
AnisotropicLighting & operator=(const AnisotropicLighting &)
Definition AnisotropicLighting:83
osg::Image * getLightingMap()
Definition AnisotropicLighting:94
void dirtyTechniques()
Definition Effect:207
@ SHALLOW_COPY
Definition CopyOp:47
void setImage(Image *image)
Image * getImage()
Definition Texture2D:58
Definition AnisotropicLighting:25
#define OSGFX_EXPORT
Definition osgFX/Export:27