![]() |
OGRE
1.12.13
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) |
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 | 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 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... | |
![]() | |
FFPLighting () | |
Class default constructor. More... | |
virtual int | getExecutionOrder () const |
bool | getSpecularEnable () const |
Get the specular component state. More... | |
void | setNormaliseEnabled (bool enable) |
normalise the blinn-phong reflection model to make it energy conserving More... | |
bool | setParameter (const String &name, const String &value) override |
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) |
![]() | |
SubRenderState () | |
Class default constructor. More... | |
virtual | ~SubRenderState () |
Class destructor. 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... | |
SubRenderState & | operator= (const SubRenderState &rhs) |
Operator = declaration. More... | |
Static Public Attributes | |
static String | Type |
![]() | |
static String | Type |
![]() | |
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.
|
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::SubRenderState.
|
static |