Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
A RenderModifier that sets uniforms and textures appropriately for rendering models. More...
#include <RenderModifiers.h>
Public Member Functions | |
ShaderRenderModifier () | |
void | BeginPass (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, Renderer::Backend::IShaderProgram *shader) override |
BeginPass: Setup OpenGL for the given rendering pass. More... | |
void | PrepareModel (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, CModel *model) override |
PrepareModel: Called before rendering the given model. More... | |
Public Member Functions inherited from LitRenderModifier | |
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 | |
int32_t | m_BindingInstancingTransform = -1 |
int32_t | m_BindingShadingColor = -1 |
int32_t | m_BindingPlayerColor = -1 |
CColor | m_ShadingColor |
CColor | m_PlayerColor |
A RenderModifier that sets uniforms and textures appropriately for rendering models.
ShaderRenderModifier::ShaderRenderModifier | ( | ) |
|
overridevirtual |
BeginPass: Setup OpenGL for the given rendering pass.
Must be implemented by derived classes.
Implements RenderModifier.
|
overridevirtual |
PrepareModel: Called before rendering the given model.
Default behaviour does nothing.
model | The model that is about to be rendered. |
Implements RenderModifier.
|
private |
|
private |
|
private |
|
private |
|
private |