raisin::ShadowAtlasTile
struct · #include <rayrai/RenderDiagnostics.hpp>
One tile of a ShadowAtlasPlan. Pixel values are atlas texels.
Public attributes
shadowIndex
cpp
size_t shadowIndexIndex into the selected additional shadow lights.
sourceLightIndex
cpp
size_t sourceLightIndexIndex into the window's additional lights (SIZE_MAX if unknown).
face
cpp
int faceCube face for point lights (0-5); 0 otherwise.
pointShadow
cpp
bool pointShadowTile belongs to a point light.
resolution
cpp
int resolutionTile edge length.
x
cpp
int xFirst texel column (corresponds to u0).
y
cpp
int yFirst texel row (corresponds to v0).
w
cpp
int wTile width.
h
cpp
int hTile height.
uvRect
cpp
glm::vec4 uvRectNormalized atlas rectangle (u0, v0, u1, v1).