OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Shader model 2 profile target. More...
#include <OgreTerrainMaterialGeneratorA.h>
Public Member Functions | |
SM2Profile (TerrainMaterialGenerator *parent, const String &name, const String &desc) | |
virtual | ~SM2Profile () |
MaterialPtr | generate (const Terrain *terrain) override |
Generate / reuse a material for the terrain. More... | |
MaterialPtr | generateForCompositeMap (const Terrain *terrain) override |
Generate / reuse a material for the terrain. More... | |
uint8 | getMaxLayers (const Terrain *terrain) const override |
Get the number of layers supported. More... | |
bool | getReceiveDynamicShadowsDepth () const |
bool | getReceiveDynamicShadowsEnabled () const |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). More... | |
bool | getReceiveDynamicShadowsLowLod () const |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). More... | |
PSSMShadowCameraSetup * | getReceiveDynamicShadowsPSSM () const |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). More... | |
bool | isCompositeMapEnabled () const |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). More... | |
bool | isGlobalColourMapEnabled () const |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). More... | |
bool | isLayerNormalMappingEnabled () const |
Whether to support normal mapping per layer in the shader (default true). More... | |
bool | isLayerParallaxMappingEnabled () const |
Whether to support parallax mapping per layer in the shader (default true). More... | |
bool | isLayerSpecularMappingEnabled () const |
Whether to support specular mapping per layer in the shader (default true). More... | |
bool | isLightmapEnabled () const |
Whether to support a light map over the terrain in the shader, if it's present (default true). More... | |
bool | isShadowingEnabled (TechniqueType tt, const Terrain *terrain) const |
bool | isVertexCompressionSupported () const override |
Compressed vertex format supported? More... | |
void | requestOptions (Terrain *terrain) override |
Request the options needed from the terrain. More... | |
void | setCompositeMapEnabled (bool enabled) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). More... | |
void | setGlobalColourMapEnabled (bool enabled) |
Whether to support a global colour map over the terrain in the shader, if it's present (default true). More... | |
void | setLayerNormalMappingEnabled (bool enabled) |
Whether to support normal mapping per layer in the shader (default true). More... | |
void | setLayerParallaxMappingEnabled (bool enabled) |
Whether to support parallax mapping per layer in the shader (default true). More... | |
void | setLayerSpecularMappingEnabled (bool enabled) |
Whether to support specular mapping per layer in the shader (default true). More... | |
void | setLightmapEnabled (bool enabled) override |
Whether to support a light map over the terrain in the shader, if it's present (default true). More... | |
void | setReceiveDynamicShadowsDepth (bool enabled) |
void | setReceiveDynamicShadowsEnabled (bool enabled) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true). More... | |
void | setReceiveDynamicShadowsLowLod (bool enabled) |
Whether to use shadows on low LOD material rendering (when using composite map) (default false). More... | |
void | setReceiveDynamicShadowsPSSM (PSSMShadowCameraSetup *pssmSettings) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0). More... | |
void | updateParams (const MaterialPtr &mat, const Terrain *terrain) override |
Update params for a terrain. More... | |
void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) override |
Update params for a terrain. More... | |
Public Member Functions inherited from Ogre::TerrainMaterialGenerator::Profile | |
Profile (const Profile &prof) | |
Profile (TerrainMaterialGenerator *parent, const String &name, const String &="") | |
virtual | ~Profile () |
const String & | getName () const |
Get the name of this profile. More... | |
TerrainMaterialGenerator * | getParent () const |
Get the generator which owns this profile. More... | |
virtual void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
Update the composite map for a terrain. More... | |
Shader model 2 profile target.
Ogre::TerrainMaterialGeneratorA::SM2Profile::SM2Profile | ( | TerrainMaterialGenerator * | parent, |
const String & | name, | ||
const String & | desc | ||
) |
|
virtual |
|
overridevirtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Get the number of layers supported.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Request the options needed from the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
overridevirtual |
Compressed vertex format supported?
Implements Ogre::TerrainMaterialGenerator::Profile.
|
inline |
Whether to support normal mapping per layer in the shader (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerNormalMappingEnabled | ( | bool | enabled | ) |
Whether to support normal mapping per layer in the shader (default true).
|
inline |
Whether to support parallax mapping per layer in the shader (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerParallaxMappingEnabled | ( | bool | enabled | ) |
Whether to support parallax mapping per layer in the shader (default true).
|
inline |
Whether to support specular mapping per layer in the shader (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setLayerSpecularMappingEnabled | ( | bool | enabled | ) |
Whether to support specular mapping per layer in the shader (default true).
|
inline |
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setGlobalColourMapEnabled | ( | bool | enabled | ) |
Whether to support a global colour map over the terrain in the shader, if it's present (default true).
|
inline |
Whether to support a light map over the terrain in the shader, if it's present (default true).
|
overridevirtual |
Whether to support a light map over the terrain in the shader, if it's present (default true).
Implements Ogre::TerrainMaterialGenerator::Profile.
|
inline |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setCompositeMapEnabled | ( | bool | enabled | ) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
|
inline |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsEnabled | ( | bool | enabled | ) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsPSSM | ( | PSSMShadowCameraSetup * | pssmSettings | ) |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
|
inline |
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
|
inline |
|
inline |
void Ogre::TerrainMaterialGeneratorA::SM2Profile::setReceiveDynamicShadowsLowLod | ( | bool | enabled | ) |
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
|
inline |
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
bool Ogre::TerrainMaterialGeneratorA::SM2Profile::isShadowingEnabled | ( | TechniqueType | tt, |
const Terrain * | terrain | ||
) | const |