Skip to content

raisin::RayraiWindow::ShadowAtlasTile ​

struct · #include <rayrai/RayraiWindow.hpp>

One tile of ShadowAtlasPlan. Pixel coordinates are in atlas texels.

Public attributes ​

shadowIndex ​

cpp
size_t shadowIndex

Index among the selected additional shadow lights.

sourceLightIndex ​

cpp
size_t sourceLightIndex

Index into the additional-light list, or size_t(-1) if unknown.

face ​

cpp
int face

Cubemap face for point lights, otherwise 0.

pointShadow ​

cpp
bool pointShadow

True for a point-light cubemap face.

resolution ​

cpp
int resolution

Tile size in texels.

x ​

cpp
int x

Left edge.

y ​

cpp
int y

Top edge.

w ​

cpp
int w

Width.

h ​

cpp
int h

Height.

uvRect ​

cpp
glm::vec4 uvRect

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

RaiSim — physics for robotics and AI.