OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::RTShader::NormalMapLighting Class Reference

Normal Map Lighting extension sub render state implementation. More...

#include <OgreShaderExNormalMapLighting.h>

+ Inheritance diagram for Ogre::RTShader::NormalMapLighting:

Public Types

enum  NormalMapSpace { NMS_TANGENT , NMS_OBJECT }
 

Public Member Functions

 NormalMapLighting ()
 Class default constructor. More...
 
virtual void copyFrom (const SubRenderState &rhs)
 
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
 
unsigned int getNormalMapAnisotropy () const
 Return the normal map anisotropy value. More...
 
void getNormalMapFiltering (FilterOptions &minFilter, FilterOptions &magFilter, FilterOptions &mipFilter) const
 Return the normal map filtering attributes. More...
 
Real getNormalMapMipBias () const
 Return the normal map mip bias value. More...
 
NormalMapSpace getNormalMapSpace () const
 Return the normal map space. More...
 
const StringgetNormalMapTextureName () 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 StringgetType () const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
virtual bool preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass)
 
void setNormalMapAnisotropy (unsigned int anisotropy)
 Setup the normal map anisotropy value. More...
 
void setNormalMapFiltering (const FilterOptions minFilter, const FilterOptions magFilter, const FilterOptions mipFilter)
 Set the normal map filtering attributes. More...
 
void setNormalMapMipBias (Real mipBias)
 Setup the normal map map mip bias value. More...
 
void setNormalMapSpace (NormalMapSpace normalMapSpace)
 Set the normal map space. More...
 
void setNormalMapTextureName (const String &textureName)
 Set the normal map texture name. More...
 
void setTexCoordIndex (unsigned int index)
 Set the index of the input vertex shader texture coordinate set. More...
 
virtual void updateGpuProgramsParams (Renderable *rend, Pass *pass, const AutoParamDataSource *source, const LightList *pLightList)
 

Static Public Attributes

static String Type
 

Detailed Description

Normal Map Lighting extension sub render state implementation.

Derives from SubRenderState class.

Member Enumeration Documentation

◆ NormalMapSpace

Enumerator
NMS_TANGENT 
NMS_OBJECT 

Constructor & Destructor Documentation

◆ NormalMapLighting()

Ogre::RTShader::NormalMapLighting::NormalMapLighting ( )

Class default constructor.

Member Function Documentation

◆ copyFrom()

virtual void Ogre::RTShader::NormalMapLighting::copyFrom ( const SubRenderState rhs)
virtual

◆ createCpuSubPrograms()

virtual bool Ogre::RTShader::SubRenderState::createCpuSubPrograms ( ProgramSet programSet)
virtualinherited

Create sub programs that represents this sub render state as part of a program set.

The given program set contains CPU programs that represents a vertex shader and pixel shader. One should use these program class API to create a representation of the sub state he wished to implement.

Parameters
programSetcontainer class of CPU and GPU programs that this sub state will affect on.

Reimplemented in Ogre::RTShader::FFPTransform.

◆ getAccessor() [1/2]

SubRenderStateAccessorPtr Ogre::RTShader::SubRenderState::getAccessor ( )
inherited

Return the accessor object to this sub render state.

See also
SubRenderStateAccessor.

◆ getAccessor() [2/2]

SubRenderStateAccessorPtr Ogre::RTShader::SubRenderState::getAccessor ( ) const
inherited

Return the accessor object to this sub render state.

See also
SubRenderStateAccessor.

◆ getExecutionOrder()

virtual int Ogre::RTShader::NormalMapLighting::getExecutionOrder ( ) const
virtual

◆ getNormalMapAnisotropy()

unsigned int Ogre::RTShader::NormalMapLighting::getNormalMapAnisotropy ( ) const
inline

Return the normal map anisotropy value.

◆ getNormalMapFiltering()

void Ogre::RTShader::NormalMapLighting::getNormalMapFiltering ( FilterOptions minFilter,
FilterOptions magFilter,
FilterOptions mipFilter 
) const
inline

Return the normal map filtering attributes.

Parameters
minFilterThe desired min filter.
magFilterThe desired mag filter.
mipFilterThe desired mip filter.

◆ getNormalMapMipBias()

Real Ogre::RTShader::NormalMapLighting::getNormalMapMipBias ( ) const
inline

Return the normal map mip bias value.

◆ getNormalMapSpace()

NormalMapSpace Ogre::RTShader::NormalMapLighting::getNormalMapSpace ( ) const
inline

Return the normal map space.

◆ getNormalMapTextureName()

const String& Ogre::RTShader::NormalMapLighting::getNormalMapTextureName ( ) const
inline

Return the normal map texture name.

◆ getTexCoordIndex()

unsigned int Ogre::RTShader::NormalMapLighting::getTexCoordIndex ( ) const
inline

Return the index of the input vertex shader texture coordinate set.

◆ getType()

virtual const String& Ogre::RTShader::NormalMapLighting::getType ( ) const
virtual

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

◆ preAddToRenderState()

virtual bool Ogre::RTShader::NormalMapLighting::preAddToRenderState ( const RenderState renderState,
Pass srcPass,
Pass dstPass 
)
virtual

◆ setNormalMapAnisotropy()

void Ogre::RTShader::NormalMapLighting::setNormalMapAnisotropy ( unsigned int  anisotropy)
inline

Setup the normal map anisotropy value.

Parameters
anisotropyThe anisotropy value.

◆ setNormalMapFiltering()

void Ogre::RTShader::NormalMapLighting::setNormalMapFiltering ( const FilterOptions  minFilter,
const FilterOptions  magFilter,
const FilterOptions  mipFilter 
)
inline

Set the normal map filtering attributes.

Parameters
minFilterThe desired min filter.
magFilterThe desired mag filter.
mipFilterThe desired mip filter.

◆ setNormalMapMipBias()

void Ogre::RTShader::NormalMapLighting::setNormalMapMipBias ( Real  mipBias)
inline

Setup the normal map map mip bias value.

Parameters
mipBiasThe map mip bias value.

◆ setNormalMapSpace()

void Ogre::RTShader::NormalMapLighting::setNormalMapSpace ( NormalMapSpace  normalMapSpace)
inline

Set the normal map space.

Parameters
normalMapSpaceThe normal map space.

◆ setNormalMapTextureName()

void Ogre::RTShader::NormalMapLighting::setNormalMapTextureName ( const String textureName)
inline

Set the normal map texture name.

◆ setTexCoordIndex()

void Ogre::RTShader::NormalMapLighting::setTexCoordIndex ( unsigned int  index)
inline

Set the index of the input vertex shader texture coordinate set.

◆ updateGpuProgramsParams()

virtual void Ogre::RTShader::NormalMapLighting::updateGpuProgramsParams ( Renderable rend,
Pass pass,
const AutoParamDataSource source,
const LightList pLightList 
)
virtual

Member Data Documentation

◆ Type

String Ogre::RTShader::NormalMapLighting::Type
static

The documentation for this class was generated from the following file: