OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Fog sub render state implementation of the Fixed Function Pipeline. More...
#include <OgreShaderFFPFog.h>
Public Types | |
enum | CalcMode { CM_PER_VERTEX = 1 , CM_PER_PIXEL = 2 } |
Public Member Functions | |
FFPFog () | |
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... | |
CalcMode | getCalcMode () const |
Return the current calculation mode. More... | |
virtual int | getExecutionOrder () const |
virtual const String & | getType () 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 | setCalcMode (CalcMode calcMode) |
Set the fog calculation mode. More... | |
void | setFogProperties (FogMode fogMode, const ColourValue &fogColour, float fogStart, float fogEnd, float fogDensity) |
Set the fog properties this fog sub render state should emulate. More... | |
virtual void | updateGpuProgramsParams (Renderable *rend, Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Static Public Attributes | |
static String | Type |
Fog sub render state implementation of the Fixed Function Pipeline.
Ogre::RTShader::FFPFog::FFPFog | ( | ) |
Class default constructor.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
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.
programSet | container class of CPU and GPU programs that this sub state will affect on. |
Reimplemented in Ogre::RTShader::FFPTransform.
|
inherited |
Return the accessor object to this sub render state.
|
inherited |
Return the accessor object to this sub render state.
|
inline |
Return the current calculation mode.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtual |
Reimplemented from Ogre::RTShader::SubRenderState.
|
inline |
Set the fog calculation mode.
Either per vertex or per pixel.
calcMode | The calculation mode to set. |
void Ogre::RTShader::FFPFog::setFogProperties | ( | FogMode | fogMode, |
const ColourValue & | fogColour, | ||
float | fogStart, | ||
float | fogEnd, | ||
float | fogDensity | ||
) |
Set the fog properties this fog sub render state should emulate.
fogMode | The fog mode to emulate (FOG_NONE, FOG_EXP, FOG_EXP2, FOG_LINEAR). |
fogColour | The colour of the fog. |
fogStart | Start distance of fog, used for linear mode only. |
fogEnd | End distance of fog, used for linear mode only. |
fogDensity | Fog density used in exponential modes only. |
|
virtual |
Reimplemented from Ogre::RTShader::SubRenderState.
|
static |