Skylight

class 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(platform::crossplatform::GraphicsDeviceContext &deviceContext, WeatherRenderer *weatherRenderer)

Update the skylight per-frame.

void RestoreDeviceObjects(platform::crossplatform::RenderPlatform *r)

Initialize GPU objects.

void InvalidateDeviceObjects()

Free the GPU objects.