Fog sub render state implementation of the Fixed Function Pipeline.
More...
#include <OgreShaderFFPFog.h>
Fog sub render state implementation of the Fixed Function Pipeline.
- See also
- http://msdn.microsoft.com/en-us/library/bb173398.aspx Derives from SubRenderState class.
◆ CalcMode
Enumerator |
---|
CM_PER_VERTEX | |
CM_PER_PIXEL | |
◆ FFPFog()
Ogre::RTShader::FFPFog::FFPFog |
( |
| ) |
|
Class default constructor.
◆ getType()
virtual const String& Ogre::RTShader::FFPFog::getType |
( |
| ) |
const |
|
virtual |
◆ getExecutionOrder()
virtual int Ogre::RTShader::FFPFog::getExecutionOrder |
( |
| ) |
const |
|
virtual |
◆ updateGpuProgramsParams()
◆ copyFrom()
virtual void Ogre::RTShader::FFPFog::copyFrom |
( |
const SubRenderState & |
rhs | ) |
|
|
virtual |
◆ preAddToRenderState()
virtual bool Ogre::RTShader::FFPFog::preAddToRenderState |
( |
const RenderState * |
renderState, |
|
|
Pass * |
srcPass, |
|
|
Pass * |
dstPass |
|
) |
| |
|
virtual |
◆ setFogProperties()
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.
- Parameters
-
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. |
- See also
- http://msdn.microsoft.com/en-us/library/bb173401.aspx
◆ setCalcMode()
void Ogre::RTShader::FFPFog::setCalcMode |
( |
CalcMode |
calcMode | ) |
|
|
inline |
Set the fog calculation mode.
Either per vertex or per pixel.
- Parameters
-
calcMode | The calculation mode to set. |
◆ getCalcMode()
CalcMode Ogre::RTShader::FFPFog::getCalcMode |
( |
| ) |
const |
|
inline |
Return the current calculation mode.
◆ 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
-
programSet | container class of CPU and GPU programs that this sub state will affect on. |
Reimplemented in Ogre::RTShader::FFPTransform.
◆ getAccessor() [1/2]
◆ getAccessor() [2/2]
◆ Type
String Ogre::RTShader::FFPFog::Type |
|
static |
The documentation for this class was generated from the following file: