Skip to content

raisin::ShadowAtlasTile ​

struct · #include <rayrai/RenderDiagnostics.hpp>

One tile of a ShadowAtlasPlan. Pixel values are atlas texels.

Public attributes ​

shadowIndex ​

cpp
size_t shadowIndex

Index into the selected additional shadow lights.

sourceLightIndex ​

cpp
size_t sourceLightIndex

Index into the window's additional lights (SIZE_MAX if unknown).

face ​

cpp
int face

Cube face for point lights (0-5); 0 otherwise.

pointShadow ​

cpp
bool pointShadow

Tile belongs to a point light.

resolution ​

cpp
int resolution

Tile edge length.

x ​

cpp
int x

First texel column (corresponds to u0).

y ​

cpp
int y

First texel row (corresponds to v0).

w ​

cpp
int w

Tile width.

h ​

cpp
int h

Tile height.

uvRect ​

cpp
glm::vec4 uvRect

Normalized atlas rectangle (u0, v0, u1, v1).

RaiSim — physics for robotics and AI.