raisin::ShadowAtlasPlan
struct · #include <rayrai/RenderDiagnostics.hpp>
Row-packed tile layout of the additional-light shadow atlas (RayraiWindow::planAdditionalShadowAtlas()).
Public attributes
enabled
cpp
bool enabledadditionalShadowAtlasPlanningEnabled, shadows on and at least one shadowed additional light.
overflow
cpp
bool overflowSome tiles did not fit and were left out.
pointShadowPolicy
cpp
PointShadowPolicy pointShadowPolicyPolicy the plan was built with.
pointShadowsUseStandaloneCubemaps
cpp
bool pointShadowsUseStandaloneCubemapspointShadowPolicy == StandaloneCubemap.
atlasResolution
cpp
int atlasResolutionAtlas edge length, texels, [512, 16384].
padding
cpp
int paddingGap between tiles, texels, [0, 16].
tileCount
cpp
int tileCountTiles placed.
nonPointTileCount
cpp
int nonPointTileCountTiles for spot/directional/area lights.
pointShadowFaceTileCount
cpp
int pointShadowFaceTileCountTiles for point-light cube faces (6 per light).
occupancy
cpp
float occupancyPlaced tile area / atlas area.
tiles
cpp
std::vector<ShadowAtlasTile> tilesPlaced tiles.