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

Utility class to help with generating shaders for GLSL. More...

#include <OgreTerrainPSSMMaterialGenerator.h>

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

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)
 
- 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 GLSL.

Definition at line 226 of file OgreTerrainPSSMMaterialGenerator.h.

Member Function Documentation

◆ createFragmentProgram()

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

◆ createVertexProgram()

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

◆ generateFpFooter()

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

◆ generateFpHeader()

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

◆ generateFpLayer()

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

◆ generateVpFooter()

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

◆ generateVpHeader()

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

◆ generateVpLayer()

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

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