All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Eegeo::Rendering::Materials::WaterMaterial2 Class Reference
Inheritance diagram for Eegeo::Rendering::Materials::WaterMaterial2:
Eegeo::Rendering::Materials::IMaterial

Public Member Functions

 WaterMaterial2 (const TMaterialId materialId, const std::string &name, Shaders::WaterShader &shader, const Lighting::GlobalLighting &lighting, const Lighting::GlobalFogging &fogging, AsyncTexturing::IAsyncTexture &diffuseTextureId, AsyncTexturing::IAsyncTexture &normalMapTextureId, AsyncTexturing::IAsyncTexture &reflectionTextureId, Rendering::TextureMinifyType textureMinifyType, bool useAlternativeAmbient, bool textureRepeat, Eegeo::v2 animationScaleUV, Eegeo::v2 animationWrapUV, float envMapFadeoutAltitude)
 
bool IsUsingAlternativeAmbient () const
 
void UseAlternativeAmbient (bool useAlternativeAmbient)
 
const TMaterialId GetId () const
 
const ShaderGetShader () const
 
const std::string & GetName () const
 
void SetDiffuseTexture (AsyncTexturing::IAsyncTexture &textureId)
 
AsyncTexturing::IAsyncTextureGetDiffuseTextureId () const
 
void SetNormalMapTexture (AsyncTexturing::IAsyncTexture &textureId)
 
AsyncTexturing::IAsyncTextureGetNormalMapTextureId () const
 
void SetReflectionTexture (AsyncTexturing::IAsyncTexture *textureId)
 
AsyncTexturing::IAsyncTextureGetReflectionTextureId () const
 
void UpdateMaterial (float deltaTime, const dv3 &ecefCameraPosition)
 
void SetState (Rendering::GLState &glState) const
 
void SetStatePerRenderable (const Rendering::RenderableBase *renderableBase, Rendering::GLState &glState) const
 

Static Public Member Functions

static m44 CalculateViewToCubeMapMatrix (const Renderables::WaterRenderable &waterRenderable)
 

Protected Attributes

const TMaterialId m_id
 
const std::string m_name
 
Shaders::WaterShaderm_shader
 
const Lighting::GlobalLightingm_lighting
 
const Lighting::GlobalFoggingm_fogging
 
Rendering::AsyncTexturing::IAsyncTexturem_diffuseTextureId
 
Rendering::AsyncTexturing::IAsyncTexturem_normalMapTextureId
 
Rendering::AsyncTexturing::IAsyncTexturem_reflectionMapTextureId
 
Rendering::AsyncTexturing::IAsyncTexturem_defaultReflectionCubeMapTextureId
 
Rendering::TextureMinifyType m_textureMinifyType
 
bool m_textureRepeat
 
bool m_useAlternativeAmbient
 
float m_altitudeScale
 
Eegeo::v2 m_animationScaleUV
 
Eegeo::v2 m_animationWrapUV
 
Eegeo::v4 m_animationStateUV
 
const float m_envMapFadeoutAltitude
 

The documentation for this class was generated from the following files: