![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Normal Map Lighting extension sub render state implementation. More...
#include <OgreShaderExNormalMapLighting.h>
Public Types | |
| enum | NormalMapSpace { NMS_OBJECT = 1 , NMS_TANGENT = 2 , NMS_PARALLAX = 6 } |
| Normal map space definition. More... | |
Public Member Functions | |
| NormalMapLighting () | |
| Class default constructor. | |
| virtual void | copyFrom (const SubRenderState &rhs) |
| const SamplerPtr & | getNormalMapSampler () const |
| return the normal map sampler | |
| NormalMapSpace | getNormalMapSpace () const |
| Return the normal map space. | |
| const String & | getNormalMapTextureName () const |
| Return the normal map texture name. | |
| unsigned int | getTexCoordIndex () const |
| Return the index of the input vertex shader texture coordinate set. | |
| virtual const String & | getType () const |
| virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
| void | setNormalMapAnisotropy (unsigned int anisotropy) |
| void | setNormalMapFiltering (const FilterOptions minFilter, const FilterOptions magFilter, const FilterOptions mipFilter) |
| void | setNormalMapMipBias (Real mipBias) |
| void | setNormalMapSampler (const SamplerPtr &sampler) |
| set the normal map sampler | |
| void | setNormalMapSpace (NormalMapSpace normalMapSpace) |
| Set the normal map space. | |
| void | setNormalMapTextureName (const String &textureName) |
| Set the normal map texture name. | |
| bool | setParameter (const String &name, const String &value) override |
| generic set method for parameters that connot be derived in preAddToRenderState | |
| void | setTexCoordIndex (unsigned int index) |
| Set the index of the input vertex shader texture coordinate set. | |
| virtual void | updateGpuProgramsParams (Renderable *rend, const Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
| Public Member Functions inherited from Ogre::RTShader::FFPLighting | |
| FFPLighting () | |
| Class default constructor. | |
| virtual int | getExecutionOrder () const |
| bool | getSpecularEnable () const |
| Get the specular component state. | |
| void | setNormaliseEnabled (bool enable) |
| normalise the blinn-phong reflection model to make it energy conserving | |
| Public Member Functions inherited from Ogre::RTShader::SubRenderState | |
| SubRenderState () | |
| Class default constructor. | |
| virtual | ~SubRenderState () |
| Class destructor. | |
| virtual bool | createCpuSubPrograms (ProgramSet *programSet) |
| Create sub programs that represents this sub render state as part of a program set. | |
| SubRenderStateAccessorPtr | getAccessor () |
| Return the accessor object to this sub render state. | |
| SubRenderStateAccessorPtr | getAccessor () const |
| Return the accessor object to this sub render state. | |
| SubRenderState & | operator= (const SubRenderState &rhs) |
| Operator = declaration. | |
Static Public Attributes | |
| static String | Type |
| Static Public Attributes inherited from Ogre::RTShader::PerPixelLighting | |
| static String | Type |
| Static Public Attributes inherited from Ogre::RTShader::FFPLighting | |
| static String | Type |
Normal Map Lighting extension sub render state implementation.
Derives from SubRenderState class.
Normal map space definition.
| Ogre::RTShader::NormalMapLighting::NormalMapLighting | ( | ) |
Class default constructor.
|
virtual |
Reimplemented from Ogre::RTShader::PerPixelLighting.
|
virtual |
Reimplemented from Ogre::RTShader::FFPLighting.
|
virtual |
Reimplemented from Ogre::RTShader::FFPLighting.
|
virtual |
Reimplemented from Ogre::RTShader::FFPLighting.
|
inline |
Set the index of the input vertex shader texture coordinate set.
|
inline |
Return the index of the input vertex shader texture coordinate set.
|
inline |
Set the normal map space.
| normalMapSpace | The normal map space. |
|
inline |
Return the normal map space.
|
inline |
Set the normal map texture name.
|
inline |
Return the normal map texture name.
|
inline |
|
inline |
|
inline |
|
inline |
return the normal map sampler
|
inline |
set the normal map sampler
|
overridevirtual |
generic set method for parameters that connot be derived in preAddToRenderState
Reimplemented from Ogre::RTShader::FFPLighting.
|
static |