Struct RenderContext

Struct Documentation

struct RenderContext

Rendering context passed to RenderableProxy::render(). Contains all state needed for rendering an object.

Public Members

Program *shader = nullptr

The shader program to use for rendering

shader_id_t shader_id = DefaultShaderID::NONE

ID of the shader being used

const TRenderMatrices *state = nullptr

Projection/view/model matrices and camera state

const mrpt::viz::TLightParameters *lights = nullptr

Lighting parameters

bool isShadowMapPass = false

Is this a shadow map generation pass?