![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
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 |
Public Member Functions inherited from RenderModifier | |
| RenderModifier () | |
| virtual | ~RenderModifier () |
| virtual void | BeginPass (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader)=0 |
| BeginPass: Setup OpenGL for the given rendering pass. More... | |
| virtual void | PrepareModel (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, 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).
| LitRenderModifier::LitRenderModifier | ( | ) |
| LitRenderModifier::~LitRenderModifier | ( | ) |
|
inline |
|
inline |
| 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) |
| 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 |
|
private |
|
private |