Skip to content

raisin::ShadowAtlasPlan ​

struct · #include <rayrai/RenderDiagnostics.hpp>

Row-packed tile layout of the additional-light shadow atlas (RayraiWindow::planAdditionalShadowAtlas()).

Public attributes ​

enabled ​

cpp
bool enabled

additionalShadowAtlasPlanningEnabled, shadows on and at least one shadowed additional light.

overflow ​

cpp
bool overflow

Some tiles did not fit and were left out.

pointShadowPolicy ​

cpp
PointShadowPolicy pointShadowPolicy

Policy the plan was built with.

pointShadowsUseStandaloneCubemaps ​

cpp
bool pointShadowsUseStandaloneCubemaps

pointShadowPolicy == StandaloneCubemap.

atlasResolution ​

cpp
int atlasResolution

Atlas edge length, texels, [512, 16384].

padding ​

cpp
int padding

Gap between tiles, texels, [0, 16].

tileCount ​

cpp
int tileCount

Tiles placed.

nonPointTileCount ​

cpp
int nonPointTileCount

Tiles for spot/directional/area lights.

pointShadowFaceTileCount ​

cpp
int pointShadowFaceTileCount

Tiles for point-light cube faces (6 per light).

occupancy ​

cpp
float occupancy

Placed tile area / atlas area.

tiles ​

cpp
std::vector<ShadowAtlasTile> tiles

Placed tiles.

RaiSim — physics for robotics and AI.