OGRE
1.9.0
|
Shader model 2 profile target. More...
#include <OgreTerrainMaterialGeneratorA.h>
Classes | |
class | ShaderHelper |
Interface definition for helper class to generate shaders. More... | |
class | ShaderHelperCg |
Utility class to help with generating shaders for Cg / HLSL. More... | |
class | ShaderHelperGLSL |
Utility class to help with generating shaders for GLSL. More... | |
class | ShaderHelperGLSLES |
Utility class to help with generating shaders for GLSL ES. More... | |
class | ShaderHelperHLSL |
Public Member Functions | |
SM2Profile (TerrainMaterialGenerator *parent, const String &name, const String &desc) | |
virtual | ~SM2Profile () |
String | _getShaderLanguage () const |
bool | _isSM3Available () const |
Internal. | |
bool | _isSM4Available () const |
MaterialPtr | generate (const Terrain *terrain) |
Generate / reuse a material for the terrain. | |
MaterialPtr | generateForCompositeMap (const Terrain *terrain) |
Generate / reuse a material for the terrain. | |
const String & | getDescription () const |
Get the description of this profile. | |
uint8 | getMaxLayers (const Terrain *terrain) const |
Get the number of layers supported. | |
const String & | getName () const |
Get the name of this profile. | |
TerrainMaterialGenerator * | getParent () const |
Get the generator which owns this profile. | |
bool | getReceiveDynamicShadowsDepth () const |
Whether to use depth shadows (default false). | |
bool | getReceiveDynamicShadowsEnabled () const |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). | |
bool | getReceiveDynamicShadowsLowLod () const |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). | |
PSSMShadowCameraSetup * | getReceiveDynamicShadowsPSSM () const |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). | |
bool | isCompositeMapEnabled () const |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). | |
bool | isGlobalColourMapEnabled () const |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). | |
bool | isLayerNormalMappingEnabled () const |
Whether to support normal mapping per layer in the shader (default true). | |
bool | isLayerParallaxMappingEnabled () const |
Whether to support parallax mapping per layer in the shader (default true). | |
bool | isLayerSpecularMappingEnabled () const |
Whether to support specular mapping per layer in the shader (default true). | |
bool | isLightmapEnabled () const |
Whether to support a light map over the terrain in the shader, if it's present (default true). | |
bool | isVertexCompressionSupported () const |
Compressed vertex format supported? | |
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 | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
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 | |
void | requestOptions (Terrain *terrain) |
Request the options needed from the terrain. | |
void | setCompositeMapEnabled (bool enabled) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). | |
void | setGlobalColourMapEnabled (bool enabled) |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). | |
void | setLayerNormalMappingEnabled (bool enabled) |
Whether to support normal mapping per layer in the shader (default true). | |
void | setLayerParallaxMappingEnabled (bool enabled) |
Whether to support parallax mapping per layer in the shader (default true). | |
void | setLayerSpecularMappingEnabled (bool enabled) |
Whether to support specular mapping per layer in the shader (default true). | |
void | setLightmapEnabled (bool enabled) |
Whether to support a light map over the terrain in the shader, if it's present (default true). | |
void | setReceiveDynamicShadowsDepth (bool enabled) |
Whether to use depth shadows (default false). | |
void | setReceiveDynamicShadowsEnabled (bool enabled) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). | |
void | setReceiveDynamicShadowsLowLod (bool enabled) |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). | |
void | setReceiveDynamicShadowsPSSM (PSSMShadowCameraSetup *pssmSettings) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). | |
virtual void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
Update the composite map for a terrain. | |
void | updateParams (const MaterialPtr &mat, const Terrain *terrain) |
Update params for a terrain. | |
void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) |
Update params for a terrain. | |
Protected Types | |
enum | TechniqueType { HIGH_LOD , LOW_LOD , RENDER_COMPOSITE_MAP } |
Protected Member Functions | |
void | addTechnique (const MaterialPtr &mat, const Terrain *terrain, TechniqueType tt) |
bool | isShadowingEnabled (TechniqueType tt, const Terrain *terrain) const |
Shader model 2 profile target.
Definition at line 61 of file OgreTerrainMaterialGeneratorA.h.
Enumerator | |
---|---|
HIGH_LOD | |
LOW_LOD | |
RENDER_COMPOSITE_MAP |
Definition at line 153 of file OgreTerrainMaterialGeneratorA.h.
Ogre::TerrainMaterialGeneratorA::SM2Profile::SM2Profile | ( | TerrainMaterialGenerator * | parent, |
const String & | name, | ||
const String & | desc | ||
) |
|
virtual |
String Ogre::TerrainMaterialGeneratorA::SM2Profile::_getShaderLanguage | ( | ) | const |
Definition at line 149 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::_isSM3Available | ( | ) | const |
Internal.
Definition at line 147 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::_isSM4Available | ( | ) | const |
Definition at line 148 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
|
virtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
Get the description of this profile.
Definition at line 184 of file OgreTerrainMaterialGenerator.h.
|
virtual |
Get the number of layers supported.
Implements Ogre::TerrainMaterialGenerator::Profile.
Get the name of this profile.
Definition at line 182 of file OgreTerrainMaterialGenerator.h.
|
inherited |
Get the generator which owns this profile.
Definition at line 180 of file OgreTerrainMaterialGenerator.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsDepth | ( | ) | const |
Whether to use depth shadows (default false).
Definition at line 138 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsEnabled | ( | ) | const |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
Definition at line 119 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsLowLod | ( | ) | const |
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
Definition at line 144 of file OgreTerrainMaterialGeneratorA.h.
PSSMShadowCameraSetup * Ogre::TerrainMaterialGeneratorA::SM2Profile::getReceiveDynamicShadowsPSSM | ( | ) | const |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
Definition at line 132 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isCompositeMapEnabled | ( | ) | const |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
Definition at line 111 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isGlobalColourMapEnabled | ( | ) | const |
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
Definition at line 95 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerNormalMappingEnabled | ( | ) | const |
Whether to support normal mapping per layer in the shader (default true).
Definition at line 76 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerParallaxMappingEnabled | ( | ) | const |
Whether to support parallax mapping per layer in the shader (default true).
Definition at line 82 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLayerSpecularMappingEnabled | ( | ) | const |
Whether to support specular mapping per layer in the shader (default true).
Definition at line 88 of file OgreTerrainMaterialGeneratorA.h.
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isLightmapEnabled | ( | ) | const |
Whether to support a light map over the terrain in the shader, if it's present (default true).
Definition at line 103 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
|
virtual |
Compressed vertex format supported?
Implements Ogre::TerrainMaterialGenerator::Profile.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
Request the options needed from the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
Whether to support normal mapping per layer in the shader (default true).
Whether to support parallax mapping per layer in the shader (default true).
Whether to support specular mapping per layer in the shader (default true).
Whether to support a light map over the terrain in the shader, if it's present (default true).
Implements Ogre::TerrainMaterialGenerator::Profile.
Whether to use depth shadows (default false).
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsPSSM | ( | PSSMShadowCameraSetup * | pssmSettings | ) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
|
virtualinherited |
Update the composite map for a terrain.
|
virtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
protected |
Definition at line 263 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 266 of file OgreTerrainMaterialGeneratorA.h.
|
protectedinherited |
Definition at line 172 of file OgreTerrainMaterialGenerator.h.
|
protected |
Definition at line 261 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 258 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 259 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 260 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 262 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 267 of file OgreTerrainMaterialGeneratorA.h.
|
protectedinherited |
Definition at line 171 of file OgreTerrainMaterialGenerator.h.
|
protectedinherited |
Definition at line 170 of file OgreTerrainMaterialGenerator.h.
|
protected |
Definition at line 265 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 264 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 257 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 270 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 268 of file OgreTerrainMaterialGeneratorA.h.
|
protected |
Definition at line 269 of file OgreTerrainMaterialGeneratorA.h.