RigsofRods
Soft-body Physics Simulation
Protected Member Functions
Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg Class Reference

Utility class to help with generating shaders for Cg / HLSL. More...

#include <OgreTerrainPSSMMaterialGenerator.h>

+ Inheritance diagram for Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg:
+ Collaboration diagram for Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg:

Protected Member Functions

HighLevelGpuProgramPtr createVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
HighLevelGpuProgramPtr createFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
void generateVpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateFpHeader (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateVpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType &outStream)
 
void generateFpLayer (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, uint layer, StringUtil::StrStreamType &outStream)
 
void generateVpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateFpFooter (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
uint generateVpDynamicShadowsParams (uint texCoordStart, const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateVpDynamicShadows (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateFpDynamicShadowsHelpers (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateFpDynamicShadowsParams (uint *texCoord, uint *sampler, const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
void generateFpDynamicShadows (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
- Protected Member Functions inherited from Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper
virtual String getVertexProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual String getFragmentProgramName (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual void generateVertexProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
virtual void generateFragmentProgramSource (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, StringUtil::StrStreamType &outStream)
 
virtual void defaultVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog)
 
virtual void defaultFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const HighLevelGpuProgramPtr &prog)
 
virtual void updateVpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr &params)
 
virtual void updateFpParams (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt, const GpuProgramParametersSharedPtr &params)
 

Additional Inherited Members

- Public Member Functions inherited from Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper
 ShaderHelper ()
 
virtual ~ShaderHelper ()
 
virtual HighLevelGpuProgramPtr generateVertexProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual HighLevelGpuProgramPtr generateFragmentProgram (const SM2Profile *prof, const Terrain *terrain, TechniqueType tt)
 
virtual void updateParams (const SM2Profile *prof, const MaterialPtr &mat, const Terrain *terrain, bool compositeMap)
 
- Static Protected Member Functions inherited from Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper
static String getChannel (uint idx)
 
- Protected Attributes inherited from Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper
size_t mShadowSamplerStartHi
 
size_t mShadowSamplerStartLo
 

Detailed Description

Utility class to help with generating shaders for Cg / HLSL.

Definition at line 200 of file OgreTerrainPSSMMaterialGenerator.h.

Member Function Documentation

◆ createFragmentProgram()

HighLevelGpuProgramPtr Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::createFragmentProgram ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Reimplemented in Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperHLSL.

Definition at line 755 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ createVertexProgram()

HighLevelGpuProgramPtr Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::createVertexProgram ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt 
)
protectedvirtual

◆ generateFpDynamicShadows()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpDynamicShadows ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protected

Definition at line 1522 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateFpDynamicShadowsHelpers()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsHelpers ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protected

Definition at line 1315 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateFpDynamicShadowsParams()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpDynamicShadowsParams ( uint *  texCoord,
uint *  sampler,
const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protected

Definition at line 1490 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateFpFooter()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpFooter ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Definition at line 1243 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateFpHeader()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpHeader ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Definition at line 938 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateFpLayer()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateFpLayer ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
uint  layer,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Definition at line 1145 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateVpDynamicShadows()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateVpDynamicShadows ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protected

Definition at line 1458 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateVpDynamicShadowsParams()

uint Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateVpDynamicShadowsParams ( uint  texCoordStart,
const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protected

Definition at line 1432 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateVpFooter()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateVpFooter ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Definition at line 1213 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateVpHeader()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateVpHeader ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

Implements Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelper.

Definition at line 782 of file OgreTerrainPSSMMaterialGenerator.cpp.

+ Here is the call graph for this function:

◆ generateVpLayer()

void Ogre::TerrainPSSMMaterialGenerator::SM2Profile::ShaderHelperCg::generateVpLayer ( const SM2Profile prof,
const Terrain *  terrain,
TechniqueType  tt,
uint  layer,
StringUtil::StrStreamType &  outStream 
)
protectedvirtual

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