![]() |
OGRE 1.12.10
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) |
Generate / reuse a material for the terrain. | |
MaterialPtr | generateForCompositeMap (const Terrain *terrain) |
Generate / reuse a material for the terrain. | |
uint8 | getMaxLayers (const Terrain *terrain) const |
Get the number of layers supported. | |
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 | isShadowingEnabled (TechniqueType tt, const Terrain *terrain) const |
bool | isVertexCompressionSupported () const |
Compressed vertex format supported? | |
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). | |
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. | |
![]() | |
Profile (const Profile &prof) | |
Profile (TerrainMaterialGenerator *parent, const String &name, const String &desc) | |
virtual | ~Profile () |
const String & | getDescription () const |
const String & | getName () const |
Get the name of this profile. | |
TerrainMaterialGenerator * | getParent () const |
Get the generator which owns this profile. | |
virtual void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
Update the composite map for a terrain. | |
Shader model 2 profile target.
Ogre::TerrainMaterialGeneratorA::SM2Profile::SM2Profile | ( | TerrainMaterialGenerator * | parent, |
const String & | name, | ||
const String & | desc | ||
) |
|
virtual |
|
virtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Generate / reuse a material for the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Get the number of layers supported.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Update params for a terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
Request the options needed from the terrain.
Implements Ogre::TerrainMaterialGenerator::Profile.
|
virtual |
Compressed vertex format supported?
Implements Ogre::TerrainMaterialGenerator::Profile.
|
inline |
Whether to support normal mapping per layer in the shader (default true).
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).
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).
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).
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).
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).
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).
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).
Whether to use depth shadows (default false).
|
inline |
Whether to use depth shadows (default false).
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 |