The main class that manages environment data. Usually, you will create a single instance of Environment, which will persist while your 3D game or simulation world is active.
If you use environment directly and not via TrueSkyRenderer, you must call the following each frame:
SetRealTime(time_seconds); skyKeyframer->TimeStep(step_days); Update();
void SetRealTime(double rt_sec)¶
Call this once per frame before Update() if you use real-time updates for clouds, rain, lightning, sky keyframes etc.
Call this once per-frame.
bool DeleteCloudKeyframer(sky::uid uid)¶
Delete the specified cloud layer.
- void SetRealTime(double rt_sec)¶