Skylight

class simul::clouds::Skylight

A class to capture light from the sky in real time for diffuse and specular lighting. You can access the cubemap by calling frameBuffer->GetTexture()

Public Functions

void Update(crossplatform::GraphicsDeviceContext &deviceContext, BaseWeatherRenderer *weatherRenderer)

Update the skylight per-frame.

void RestoreDeviceObjects(crossplatform::RenderPlatform *r)

Initialize GPU objects.

void InvalidateDeviceObjects()

Free the GPU objects.