![]() |
OGRE 13.2
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. More... | |
virtual void | copyFrom (const SubRenderState &rhs) |
int | getExecutionOrder () const |
Get the execution order of this sub render state. More... | |
const SamplerPtr & | getNormalMapSampler () const |
return the normal map sampler More... | |
NormalMapSpace | getNormalMapSpace () const |
Return the normal map space. More... | |
const String & | getNormalMapTextureName () const |
Return the normal map texture name. More... | |
unsigned int | getTexCoordIndex () const |
Return the index of the input vertex shader texture coordinate set. More... | |
virtual const String & | getType () const |
virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
void | setNormalMapSampler (const SamplerPtr &sampler) |
set the normal map sampler More... | |
void | setNormalMapSpace (NormalMapSpace normalMapSpace) |
Set the normal map space. More... | |
void | setNormalMapTextureName (const String &textureName) |
Set the normal map texture name. More... | |
bool | setParameter (const String &name, const String &value) override |
generic set method for parameters that connot be derived in preAddToRenderState More... | |
void | setTexCoordIndex (unsigned int index) |
Set the index of the input vertex shader texture coordinate set. More... | |
![]() | |
SubRenderState () | |
Class default constructor. More... | |
virtual | ~SubRenderState () |
Class destructor. More... | |
virtual void | copyFrom (const SubRenderState &rhs)=0 |
Copy details from a given sub render state to this one. More... | |
virtual bool | createCpuSubPrograms (ProgramSet *programSet) |
Create sub programs that represents this sub render state as part of a program set. More... | |
SubRenderStateAccessorPtr | getAccessor () |
Return the accessor object to this sub render state. More... | |
SubRenderStateAccessorPtr | getAccessor () const |
Return the accessor object to this sub render state. More... | |
virtual int | getExecutionOrder () const =0 |
Get the execution order of this sub render state. More... | |
virtual const String & | getType () const =0 |
Get the type of this sub render state. More... | |
SubRenderState & | operator= (const SubRenderState &rhs) |
Operator = declaration. More... | |
virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
Called before adding this sub render state to the given render state. More... | |
virtual bool | setParameter (const String &name, const String &value) |
generic set method for parameters that connot be derived in preAddToRenderState More... | |
virtual void | updateGpuProgramsParams (Renderable *rend, const Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Update GPU programs parameters before a rendering operation occurs. More... | |
Static Public Attributes | |
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 |
Implements Ogre::RTShader::SubRenderState.
|
inlinevirtual |
Get the execution order of this sub render state.
Implements Ogre::RTShader::SubRenderState.
References Ogre::RTShader::FFP_LIGHTING.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
virtual |
Reimplemented from Ogre::RTShader::SubRenderState.
|
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 |
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::SubRenderState.
|
static |