Skip to content

raisin::WeatherSkyEnvironment ​

struct · #include <rayrai/Weather.hpp>

Sky cubemaps baked from the current weather (RayraiWindow::generateWeatherSkyEnvironment()).

The textures are owned by the window and deleted on the next generation, on clearWeatherSkyEnvironment() and whenever setWeatherSettings() is called.

Public attributes ​

environmentMap ​

cpp
unsigned int environmentMap

Float radiance cubemap of the weather sky.

irradianceMap ​

cpp
unsigned int irradianceMap

Float diffuse irradiance cubemap; 0 when not requested.

environmentFaceSize ​

cpp
int environmentFaceSize

Radiance face size, texels, [16, 2048].

irradianceFaceSize ​

cpp
int irradianceFaceSize

Irradiance face size, texels, [0, 256].

generationCount ​

cpp
uint64_t generationCount

Incremented on each generation.

valid ​

cpp
bool valid

All requested cubemaps were created.

RaiSim — physics for robotics and AI.