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 Render(platform::crossplatform::GraphicsDeviceContext &parentDeviceContext, WeatherRenderer *baseWeatherRenderer, int cube_id, platform::crossplatform::Framebuffer *fb, int faceIndex, const mat4 &engineToSimulMatrix4x4, float blend, float exposure = 1.0f, float gamma = 1.0f)¶
Fill in the texture.
-
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.
-
void LoadShaders()¶
Recompile the shaders for this class.
-
void ShowDebug(platform::crossplatform::GraphicsDeviceContext &deviceContext, int X, int Y, int w)¶
Show debug displays onscreen.
-
void Render(platform::crossplatform::GraphicsDeviceContext &parentDeviceContext, WeatherRenderer *baseWeatherRenderer, int cube_id, platform::crossplatform::Framebuffer *fb, int faceIndex, const mat4 &engineToSimulMatrix4x4, float blend, float exposure = 1.0f, float gamma = 1.0f)¶