28#ifndef INCLUDED_RENDERMODIFIERS
29#define INCLUDED_RENDERMODIFIERS
Class CLightEnv: description of a lighting environment - contains all the necessary parameters for re...
Definition: LightEnv.h:37
Class LitRenderModifier: Abstract base class for RenderModifiers that apply a shadow map.
Definition: RenderModifiers.h:82
const ShadowMap * m_Shadow
Definition: RenderModifiers.h:110
const CLightEnv * m_LightEnv
Definition: RenderModifiers.h:111
void SetLightEnv(const CLightEnv *lightenv)
SetLightEnv: Set the light environment that will be used for rendering.
Definition: RenderModifiers.cpp:55
LitRenderModifier()
Definition: RenderModifiers.cpp:39
const CLightEnv * GetLightEnv() const
Definition: RenderModifiers.h:107
void SetShadowMap(const ShadowMap *shadow)
SetShadowMap: Set the shadow map that will be used for rendering.
Definition: RenderModifiers.cpp:49
const ShadowMap * GetShadowMap() const
Definition: RenderModifiers.h:106
~LitRenderModifier()
Definition: RenderModifiers.cpp:44
Class RenderModifier: Some ModelRenderer implementations provide vertex management behaviour but allo...
Definition: RenderModifiers.h:49
virtual ~RenderModifier()
Definition: RenderModifiers.h:52
RenderModifier()
Definition: RenderModifiers.h:51
virtual void BeginPass(Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader)=0
BeginPass: Setup OpenGL for the given rendering pass.
virtual void PrepareModel(Renderer::Backend::IDeviceCommandContext *deviceCommandContext, CModel *model)=0
PrepareModel: Called before rendering the given model.
Definition: IDeviceCommandContext.h:42
IShaderProgram is a container for multiple shaders of different types.
Definition: IShaderProgram.h:81
A RenderModifier that sets uniforms and textures appropriately for rendering models.
Definition: RenderModifiers.h:118
CColor m_PlayerColor
Definition: RenderModifiers.h:135
void BeginPass(Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader) override
BeginPass: Setup OpenGL for the given rendering pass.
Definition: RenderModifiers.cpp:68
int32_t m_BindingInstancingTransform
Definition: RenderModifiers.h:131
ShaderRenderModifier()
Definition: RenderModifiers.cpp:63
int32_t m_BindingPlayerColor
Definition: RenderModifiers.h:133
int32_t m_BindingShadingColor
Definition: RenderModifiers.h:132
CColor m_ShadingColor
Definition: RenderModifiers.h:135
void PrepareModel(Renderer::Backend::IDeviceCommandContext *deviceCommandContext, CModel *model) override
PrepareModel: Called before rendering the given model.
Definition: RenderModifiers.cpp:133
Class ShadowMap: Maintain the shadow map texture and perform necessary OpenGL setup,...
Definition: ShadowMap.h:39