|
| | TerrainMaterialGeneratorA () |
| |
| virtual | ~TerrainMaterialGeneratorA () |
| |
| MaterialPtr | generate (const Terrain *terrain) override |
| | Generate a material for the given terrain using the active profile.
|
| |
| MaterialPtr | generateForCompositeMap (const Terrain *terrain) override |
| | Generate a material for the given composite map of the terrain using the active profile.
|
| |
| Profile * | getActiveProfile () const override |
| | Get the active profile.
|
| |
| RTShader::RenderState * | getMainRenderState () const |
| |
| uint8 | getMaxLayers (const Terrain *terrain) const override |
| | Get the maximum number of layers supported with the given terrain.
|
| |
| 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).
|
| |
| bool | isCompositeMapEnabled () const |
| |
| bool | isLightmapEnabled () const |
| |
| bool | isVertexCompressionSupported () const override |
| | Return whether this material generator supports using a compressed vertex format.
|
| |
| void | requestOptions (Terrain *terrain) override |
| | Triggers the generator to request the options that it needs.
|
| |
| void | setCompositeMapEnabled (bool enabled) |
| | Whether to use the composite map to provide a lower LOD technique in the distance (default true).
|
| |
| void | setLayerNormalMappingEnabled (bool enabled) |
| | Whether to support normal 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) override |
| | Whether to support a light map over the terrain in the shader, if it's present (default true).
|
| |
| 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 | updateParams (const MaterialPtr &mat, const Terrain *terrain) override |
| | Update parameters for the given terrain using the active profile.
|
| |
| void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) override |
| | Update parameters for the given terrain composite map using the active profile.
|
| |
| | TerrainMaterialGenerator () |
| |
| virtual | ~TerrainMaterialGenerator () |
| |
| Texture * | _getCompositeMapRTT () |
| |
| void | _markChanged () |
| | Internal method - indicates that a change has been made that would require material regeneration.
|
| |
| void | _renderCompositeMap (size_t size, const Rect &rect, const MaterialPtr &mat, const TexturePtr &destCompositeMap) |
| | Helper method to render a composite map.
|
| |
| virtual MaterialPtr | generate (const Terrain *terrain)=0 |
| | Generate a material for the given terrain using the active profile.
|
| |
| virtual MaterialPtr | generateForCompositeMap (const Terrain *terrain)=0 |
| | Generate a material for the given composite map of the terrain using the active profile.
|
| |
| virtual Profile * | getActiveProfile () const |
| | Get the active profile.
|
| |
| unsigned long long int | getChangeCount () const |
| | Returns the number of times the generator has undergone a change which would require materials to be regenerated.
|
| |
| unsigned int | getDebugLevel () const |
| | Get the debug level of the material.
|
| |
| const TerrainLayerDeclaration & | getLayerDeclaration () const |
| | Get the layer declaration that this material generator operates with.
|
| |
| virtual uint8 | getMaxLayers (const Terrain *terrain) const |
| | Get the maximum number of layers supported with the given terrain.
|
| |
| virtual bool | isVertexCompressionSupported () const |
| | Return whether this material generator supports using a compressed vertex format.
|
| |
| virtual void | requestOptions (Terrain *terrain) |
| | Triggers the generator to request the options that it needs.
|
| |
| void | setDebugLevel (unsigned int dbg) |
| | Set the debug level of the material.
|
| |
| virtual void | setLightmapEnabled (bool enabled) |
| | Whether to support a light map over the terrain in the shader, if it's present (default true).
|
| |
| void | updateCompositeMap (const Terrain *terrain, const Rect &rect) |
| | Update the composite map for a terrain.
|
| |
| virtual void | updateParams (const MaterialPtr &mat, const Terrain *terrain) |
| | Update parameters for the given terrain using the active profile.
|
| |
| virtual void | updateParamsForCompositeMap (const MaterialPtr &mat, const Terrain *terrain) |
| | Update parameters for the given terrain composite map using the active profile.
|
| |
A TerrainMaterialGenerator which can cope with normal mapped, specular mapped terrain.