Go to the documentation of this file.
29 #ifndef __Ogre_TerrainMaterialGeneratorA_H__
30 #define __Ogre_TerrainMaterialGeneratorA_H__
38 class PSSMShadowCameraSetup;
71 void requestOptions(
Terrain* terrain);
72 bool isVertexCompressionSupported()
const;
79 void setLayerNormalMappingEnabled(
bool enabled);
85 void setLayerParallaxMappingEnabled(
bool enabled);
91 void setLayerSpecularMappingEnabled(
bool enabled);
99 void setGlobalColourMapEnabled(
bool enabled);
107 void setLightmapEnabled(
bool enabled);
115 void setCompositeMapEnabled(
bool enabled);
123 void setReceiveDynamicShadowsEnabled(
bool enabled);
135 void setReceiveDynamicShadowsDepth(
bool enabled);
141 void setReceiveDynamicShadowsLowLod(
bool enabled);
bool mLayerSpecularMappingEnabled
bool _isSM3Available() const
Internal.
bool mGlobalColourMapEnabled
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
ShaderHelper * mShaderGen
Class that provides functionality to generate materials for use with a terrain.
bool mLayerParallaxMappingEnabled
PSSMShadowCameraSetup * getReceiveDynamicShadowsPSSM() const
Whether to use PSSM support dynamic texture shadows, and if so the settings to use (default 0).
PSSMShadowCameraSetup * mPSSM
bool mReceiveDynamicShadows
#define _OgreTerrainExport
Parallel Split Shadow Map (PSSM) shadow camera setup.
bool isGlobalColourMapEnabled() const
Whether to support a global colour map over the terrain in the shader, if it's present (default true)...
The main containing class for a chunk of terrain.
A TerrainMaterialGenerator which can cope with normal mapped, specular mapped terrain.
bool getReceiveDynamicShadowsDepth() const
Whether to use depth shadows (default false).
Inner class which should also be subclassed to provide profile-specific material generation.
StringStream StrStreamType
bool getReceiveDynamicShadowsEnabled() const
Whether to support dynamic texture shadows received from other objects, on the terrain (default true)...
Interface definition for helper class to generate shaders.
String _getShaderLanguage() const
bool mLayerNormalMappingEnabled
Utility class to help with generating shaders for Cg / HLSL.
bool _isSM4Available() const
Utility class to help with generating shaders for GLSL.
size_t mShadowSamplerStartHi
Utility class to help with generating shaders for GLSL ES.
bool isLightmapEnabled() const
Whether to support a light map over the terrain in the shader, if it's present (default true).
bool isCompositeMapEnabled() const
Whether to use the composite map to provide a lower LOD technique in the distance (default true).
bool isLayerParallaxMappingEnabled() const
Whether to support parallax mapping per layer in the shader (default true).
size_t mShadowSamplerStartLo
bool isLayerSpecularMappingEnabled() const
Whether to support specular mapping per layer in the shader (default true).
bool getReceiveDynamicShadowsLowLod() const
Whether to use shadows on low LOD material rendering (when using composite map) (default false).
Shader model 2 profile target.
bool isLayerNormalMappingEnabled() const
Whether to support normal mapping per layer in the shader (default true).
bool mCompositeMapEnabled
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15