OGRE
14.3
Object-Oriented Graphics Rendering Engine
|
A TerrainMaterialGenerator which can cope with normal mapped, specular mapped terrain. More...
#include <OgreTerrainMaterialGeneratorA.h>
Classes | |
class | SM2Profile |
Shader model 2 profile target. More... | |
Public Member Functions | |
TerrainMaterialGeneratorA () | |
virtual | ~TerrainMaterialGeneratorA () |
MaterialPtr | generate (const Terrain *terrain) override |
Generate a material for the given terrain using the active profile. More... | |
MaterialPtr | generateForCompositeMap (const Terrain *terrain) override |
Generate a material for the given composite map of the terrain using the active profile. More... | |
Profile * | getActiveProfile () const override |
Get the active profile. More... | |
RTShader::RenderState * | getMainRenderState () const |
uint8 | getMaxLayers (const Terrain *terrain) const override |
Get the maximum number of layers supported with the given terrain. More... | |
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... | |
bool | isCompositeMapEnabled () const |
bool | isLightmapEnabled () const |
bool | isVertexCompressionSupported () const override |
Return whether this material generator supports using a compressed vertex format. More... | |
void | requestOptions (Terrain *terrain) override |
Triggers the generator to request the options that it needs. More... | |
void | setCompositeMapEnabled (bool enabled) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true). More... | |
void | setLayerNormalMappingEnabled (bool enabled) |
Whether to support normal 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 | 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 | updateParams (const MaterialPtr &mat, const Terrain *terrain) override |
Update parameters for the given terrain using the active profile. More... | |
void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) override |
Update parameters for the given terrain composite map using the active profile. More... | |
Public Member Functions inherited from Ogre::TerrainMaterialGenerator | |
TerrainMaterialGenerator () | |
virtual | ~TerrainMaterialGenerator () |
Texture * | _getCompositeMapRTT () |
void | _markChanged () |
Internal method - indicates that a change has been made that would require material regeneration. More... | |
void | _renderCompositeMap (size_t size, const Rect &rect, const MaterialPtr &mat, const TexturePtr &destCompositeMap) |
Helper method to render a composite map. More... | |
unsigned long long int | getChangeCount () const |
Returns the number of times the generator has undergone a change which would require materials to be regenerated. More... | |
unsigned int | getDebugLevel () const |
Get the debug level of the material. More... | |
const TerrainLayerDeclaration & | getLayerDeclaration () const |
Get the layer declaration that this material generator operates with. More... | |
void | setDebugLevel (unsigned int dbg) |
Set the debug level of the material. More... | |
void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
Update the composite map for a terrain. More... | |
A TerrainMaterialGenerator which can cope with normal mapped, specular mapped terrain.
Ogre::TerrainMaterialGeneratorA::TerrainMaterialGeneratorA | ( | ) |
|
virtual |
|
inline |
|
inline |
Whether to support normal mapping per layer in the shader (default true).
|
inline |
Whether to support specular mapping per layer in the shader (default true).
|
inline |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
void Ogre::TerrainMaterialGeneratorA::setReceiveDynamicShadowsEnabled | ( | bool | enabled | ) |
Whether to support dynamic texture shadows received from other objects, on the terrain (default true).
void Ogre::TerrainMaterialGeneratorA::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).
|
inline |
void Ogre::TerrainMaterialGeneratorA::setCompositeMapEnabled | ( | bool | enabled | ) |
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
|
inline |
|
inlineoverridevirtual |
Get the active profile.
Reimplemented from Ogre::TerrainMaterialGenerator.
|
inlineoverridevirtual |
Return whether this material generator supports using a compressed vertex format.
This is only possible when using shaders.
Reimplemented from Ogre::TerrainMaterialGenerator.
|
overridevirtual |
Triggers the generator to request the options that it needs.
Reimplemented from Ogre::TerrainMaterialGenerator.
|
inlineoverridevirtual |
Generate a material for the given terrain using the active profile.
Implements Ogre::TerrainMaterialGenerator.
|
overridevirtual |
Generate a material for the given composite map of the terrain using the active profile.
Implements Ogre::TerrainMaterialGenerator.
|
overridevirtual |
Whether to support a light map over the terrain in the shader, if it's present (default true).
Reimplemented from Ogre::TerrainMaterialGenerator.
|
inlineoverridevirtual |
Get the maximum number of layers supported with the given terrain.
Reimplemented from Ogre::TerrainMaterialGenerator.
|
overridevirtual |
Update parameters for the given terrain using the active profile.
Reimplemented from Ogre::TerrainMaterialGenerator.
|
overridevirtual |
Update parameters for the given terrain composite map using the active profile.
Reimplemented from Ogre::TerrainMaterialGenerator.