Public Attributes

VR3ShadowShaderParams Struct Reference

Shadow controller shader parameters. More...

#include <VR3ShadowController.h>

List of all members.

Public Attributes

GLint numactivesources
 Number of active shadow sources.
GLfloat projmat [16 *VR3SDOW_NUM_SOURCES]
 shadow source projection matrices for rendering (updated at each DrawShadowMaps() call)
GLfloat viewmat [16 *VR3SDOW_NUM_SOURCES]
 shadow source viewing matrices (updated at each DrawShadowMaps() call)
GLfloat znear [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources near clipping distances.
GLfloat zfar [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources far clipping distances.
GLfloat intensity [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources intensity values.
GLfloat minvariance [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources minimum variance values.
GLfloat bleedred [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources bleeding reduction factor values.
GLfloat depthscale [VR3SDOW_NUM_SOURCES]
 Array containing m_numactivesources depth scale values.

Detailed Description

Shadow controller shader parameters.

During object rendering, some shadow source properties stored in the active VR3ShadowController object must be used as uniforms. To obtain efficient shader operations, each time the VR3ShadowController::DrawShadowMaps() function is called we prepare the useful variables in the form the shaders consume them, storing them as in the following structure.

Definition at line 36 of file VR3ShadowController.h.


Member Data Documentation

GLfloat VR3ShadowShaderParams::bleedred[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources bleeding reduction factor values.

Definition at line 52 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::depthscale[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources depth scale values.

Definition at line 54 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::intensity[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources intensity values.

Definition at line 48 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::minvariance[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources minimum variance values.

Definition at line 50 of file VR3ShadowController.h.

Number of active shadow sources.

Definition at line 38 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::projmat[16 *VR3SDOW_NUM_SOURCES]

shadow source projection matrices for rendering (updated at each DrawShadowMaps() call)

Definition at line 40 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::viewmat[16 *VR3SDOW_NUM_SOURCES]

shadow source viewing matrices (updated at each DrawShadowMaps() call)

Definition at line 42 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::zfar[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources far clipping distances.

Definition at line 46 of file VR3ShadowController.h.

GLfloat VR3ShadowShaderParams::znear[VR3SDOW_NUM_SOURCES]

Array containing m_numactivesources near clipping distances.

Definition at line 44 of file VR3ShadowController.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines