![]() |
VR-Forces 4.3.1 Class Documentation
|
Class doing all the heavy lifting in regards of forward+ lighting. More...
Public Member Functions | |
| DtTileSpaceLightGrid () | |
| CTOR. | |
| virtual | ~DtTileSpaceLightGrid () |
| DTOR. | |
| const Vector2_uint32 & | gridMaxDims (void) const |
| Get the num of tiles in x and y for the current internal max resolution. | |
| uint32 | getGridMaxDimsFlattened (void) const |
| Get the numTilesX * numTilesY. | |
| void | setTileSize (Vector2_uint32 tileSize) |
| Tile Size getter/setter. | |
| const Vector2_uint32 & | tileSize (void) const |
| Tile Size getter/setter. | |
| void | update (const VectorLights &frustumVisibleLights, const Camera_64 *pCamera, const Vector2_uint32 &viewportSize) |
| Update to bin lights affecting frustum into tiles. | |
| void | update (const VectorLights &frustumVisibleLights, const Matrix4_64 &view_projection_matrix, const Vector2_uint32 &viewportSize) |
| Update to bin lights affecting frustum into tiles. | |
| int | tileLightCount (uint32 x, uint32 y) const |
| Tile accessor functions. Returns tile data for an individual tile. | |
| const int * | tileLightIndexList (uint32 x, uint32 y) const |
| Tile accessor functions. Returns tile data for an individual tile. | |
| const int * | tileDataPtr () const |
| Grid data pointer accessors, used for uploading to GPU. | |
| const int * | tileCountsDataPtr () const |
| Grid data pointer accessors, used for uploading to GPU. | |
| const int * | tileLightIndexListsPtr () const |
| Grid data pointer accessors, used for uploading to GPU. | |
| uint32 | totalTileLightIndexListLength () const |
| Grid data pointer accessors, used for uploading to GPU. | |
| void | setScreenAreaCullSize (uint32 val) |
| Rejects lights with screen space area less than this value. | |
| uint32 | screenAreaCullSize (void) const |
| Rejects lights with screen space area less than this value. | |
Private Member Functions | |
| void | updateScreenSpaceRectangles (const VectorLights &frustumVisibleLights, const Matrix4_64 &view_projection_matrix, const Vector2_uint32 &viewportSize, const Vector2_uint32 &tileSize) |
| void | updateToAccountForScreenRes (const Vector2_uint32 &viewport_size) |
| int & | GridOffset (int x, int y) |
| int & | GridCount (int x, int y) |
| int | gridOffset (int x, int y) |
| int | gridCount (int x, int y) |
Private Attributes | |
| Vector2_uint32 | myTileSize |
| Vector2_uint32 | myCurrentMaxScreenResolution |
| Vector2_uint32 | myGridMaxDims |
| int32 * | myGridOffsets |
| int32 * | myGridCounts |
| std::vector< int > | myTileLightIndexLists |
| uint32 | myMaxTileLightCount |
| bool | myMinMaxGridValid |
| ConstVectorLights | myViewSpaceLights |
| VectorScreenRectangles | myScreenRects |
| VectorAreas | myScreenRectAreas |
| uint32 | myRejectArea |
Static Private Attributes | |
| static const Vector2_uint32 | m_InitialMaxScreenResolution |
Class doing all the heavy lifting in regards of forward+ lighting.
| makVrv::DtTileSpaceLightGrid::DtTileSpaceLightGrid | ( | ) |
CTOR.
|
virtual |
DTOR.
| void makVrv::DtTileSpaceLightGrid::setTileSize | ( | Vector2_uint32 | tileSize | ) |
Tile Size getter/setter.
| const Vector2_uint32& makVrv::DtTileSpaceLightGrid::tileSize | ( | void | ) | const |
Tile Size getter/setter.
| const Vector2_uint32& makVrv::DtTileSpaceLightGrid::gridMaxDims | ( | void | ) | const |
Get the num of tiles in x and y for the current internal max resolution.
| uint32 makVrv::DtTileSpaceLightGrid::getGridMaxDimsFlattened | ( | void | ) | const |
Get the numTilesX * numTilesY.
| void makVrv::DtTileSpaceLightGrid::update | ( | const VectorLights & | frustumVisibleLights, |
| const Camera_64 * | pCamera, | ||
| const Vector2_uint32 & | viewportSize | ||
| ) |
Update to bin lights affecting frustum into tiles.
| void makVrv::DtTileSpaceLightGrid::update | ( | const VectorLights & | frustumVisibleLights, |
| const Matrix4_64 & | view_projection_matrix, | ||
| const Vector2_uint32 & | viewportSize | ||
| ) |
Update to bin lights affecting frustum into tiles.
Tile accessor functions. Returns tile data for an individual tile.
Tile accessor functions. Returns tile data for an individual tile.
|
inline |
Grid data pointer accessors, used for uploading to GPU.
|
inline |
Grid data pointer accessors, used for uploading to GPU.
|
inline |
Grid data pointer accessors, used for uploading to GPU.
|
inline |
Grid data pointer accessors, used for uploading to GPU.
| void makVrv::DtTileSpaceLightGrid::setScreenAreaCullSize | ( | uint32 | val | ) |
Rejects lights with screen space area less than this value.
| uint32 makVrv::DtTileSpaceLightGrid::screenAreaCullSize | ( | void | ) | const |
Rejects lights with screen space area less than this value.
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |