|
| void | computeMatrixesAndCameras (scene::ICameraSceneNode *const camnode, unsigned int width, unsigned int height) |
| | Generate View, Projection, Inverse View, Inverse Projection, ViewProjection and InverseProjection matrixes and matrixes and cameras for the four shadow cascade and RSM. More...
|
| |
|
void | addLight (const core::vector3df &pos) |
| |
|
void | updateSunOrthoMatrices () |
| |
|
void | renderShadowsDebug (const FrameBuffer *shadow_framebuffer, const PostProcessing *post_processing) |
| |
|
void | resetShadowCamNodes () |
| |
|
scene::ICameraSceneNode ** | getShadowCamNodes () |
| |
|
core::vector3df * | getShadowFrustumBoxExtent () |
| |
|
scene::ICameraSceneNode * | getSunCam () |
| |
|
std::vector< core::matrix4 > & | getSunOrthoMatrices () |
| |
|
const float * | getMatricesData () const |
| |
|
|
static float | m_shadow_split [5] = { 1., 10., 25., 75., 300 } |
| |
|
static float | m_shadow_overlap_proportion = 0.15 |
| |
|
| core::matrix4 | getTightestFitOrthoProj (const core::matrix4 &transform, const std::vector< core::vector3df > &pointsInside, core::vector3df &bounding_box_extent) |
| | Given a matrix transform and a set of points returns an orthogonal projection matrix that maps coordinates of transformed points between -1 and 1. More...
|
| |
|
void | renderWireFrameFrustrum (float *tmp, unsigned i) |
| |
|
|
std::vector< core::matrix4 > | m_sun_ortho_matrices |
| |
|
scene::ICameraSceneNode * | m_sun_cam |
| |
|
scene::ICameraSceneNode * | m_shadow_cam_nodes [4] |
| |
|
core::matrix4 | m_rsm_matrix |
| |
|
bool | m_rsm_matrix_initialized |
| |
|
float | m_shadows_cam [4][24] |
| |
|
bool | m_rsm_map_available |
| |
|
float | m_mat_ubo [16 *9+2] |
| |
|
core::vector3df | m_frustum_box_extent [4] |
| |
◆ computeMatrixesAndCameras()
| void ShadowMatrices::computeMatrixesAndCameras |
( |
scene::ICameraSceneNode *const |
camnode, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
Generate View, Projection, Inverse View, Inverse Projection, ViewProjection and InverseProjection matrixes and matrixes and cameras for the four shadow cascade and RSM.
- Parameters
-
| camnode | point of view used |
| width | of the rendering viewport |
| height | of the rendering viewport |
◆ getTightestFitOrthoProj()
| core::matrix4 ShadowMatrices::getTightestFitOrthoProj |
( |
const core::matrix4 & |
transform, |
|
|
const std::vector< core::vector3df > & |
pointsInside, |
|
|
core::vector3df & |
bounding_box_extent |
|
) |
| |
|
private |
Given a matrix transform and a set of points returns an orthogonal projection matrix that maps coordinates of transformed points between -1 and 1.
- Parameters
-
| transform | a transform matrix. |
| pointsInside | a vector of point in 3d space. |
The documentation for this class was generated from the following files: