Pyrogenesis
13997
|
Class LitRenderModifier: Abstract base class for RenderModifiers that apply a shadow map. More...
#include <RenderModifiers.h>
Public Member Functions | |
LitRenderModifier () | |
~LitRenderModifier () | |
void | SetShadowMap (const ShadowMap *shadow) |
SetShadowMap: Set the shadow map that will be used for rendering. More... | |
void | SetLightEnv (const CLightEnv *lightenv) |
SetLightEnv: Set the light environment that will be used for rendering. More... | |
const ShadowMap * | GetShadowMap () const |
const CLightEnv * | GetLightEnv () const |
![]() | |
RenderModifier () | |
virtual | ~RenderModifier () |
virtual void | BeginPass (const CShaderProgramPtr &shader)=0 |
BeginPass: Setup OpenGL for the given rendering pass. More... | |
virtual void | PrepareModel (const CShaderProgramPtr &shader, CModel *model)=0 |
PrepareModel: Called before rendering the given model. More... | |
Private Attributes | |
const ShadowMap * | m_Shadow |
const CLightEnv * | m_LightEnv |
Class LitRenderModifier: Abstract base class for RenderModifiers that apply a shadow map.
LitRenderModifiers expect the diffuse brightness in the primary color (instead of ambient + diffuse).
Definition at line 82 of file RenderModifiers.h.
LitRenderModifier::LitRenderModifier | ( | ) |
Definition at line 46 of file RenderModifiers.cpp.
LitRenderModifier::~LitRenderModifier | ( | ) |
Definition at line 51 of file RenderModifiers.cpp.
|
inline |
Definition at line 108 of file RenderModifiers.h.
|
inline |
Definition at line 107 of file RenderModifiers.h.
void LitRenderModifier::SetLightEnv | ( | const CLightEnv * | lightenv | ) |
SetLightEnv: Set the light environment that will be used for rendering.
Must be called by the user of the RenderModifier.
lightenv | the light environment (must be non-null) |
Definition at line 62 of file RenderModifiers.cpp.
void LitRenderModifier::SetShadowMap | ( | const ShadowMap * | shadow | ) |
SetShadowMap: Set the shadow map that will be used for rendering.
Must be called by the user of the RenderModifier.
The shadow map must be non-null and use depth texturing, or subsequent rendering using this RenderModifier will fail.
shadow | the shadow map |
Definition at line 56 of file RenderModifiers.cpp.
|
private |
Definition at line 112 of file RenderModifiers.h.
|
private |
Definition at line 111 of file RenderModifiers.h.