Lightning Renderer¶
-
class LightningRenderer¶
The renderer for lightning.
Public Functions
-
LightningRenderer(simul::sky::BaseSkyInterface *sk)¶
Constructor.
-
virtual ~LightningRenderer()¶
Destructor.
-
void RestoreDeviceObjects(platform::crossplatform::RenderPlatform *r)¶
Platform-dependent function called when initializing the lightning renderer.
-
void InvalidateDeviceObjects()¶
Platform-dependent function called when uninitializing the lightning renderer.
-
void PreRenderUpdate(platform::crossplatform::GraphicsDeviceContext &deviceContext, float real_time)¶
Once per-frame update. Do this before any rendering each frame.
-
void Render(platform::crossplatform::GraphicsDeviceContext &deviceContext, CloudKeyframer *cloudKeyframer, platform::crossplatform::Texture *depth_tex, vec4 depthViewportXYWH, const clouds::TransparencyAtmospherics &t, float brightnessToUnity, clouds::WeatherRenderer *weatherRenderer)¶
Main render call.
-
void RenderOverlay(platform::crossplatform::GraphicsDeviceContext &deviceContext, Storm*)¶
Render debug information.
-
void RecompileShaders()¶
Platform-dependent function to reload the shaders - only use this for debug purposes.
-
LightningRenderer(simul::sky::BaseSkyInterface *sk)¶