Base Lightning Renderer¶
-
class BaseLightningRenderer¶
The renderer for lightning.
Public Functions
-
BaseLightningRenderer(simul::sky::BaseSkyInterface *sk)¶
Constructor.
-
virtual ~BaseLightningRenderer()¶
Destructor.
-
void RestoreDeviceObjects(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(crossplatform::GraphicsDeviceContext &deviceContext, float real_time)¶
Once per-frame update. Do this before any rendering each frame.
-
void Render(crossplatform::GraphicsDeviceContext &deviceContext, CloudKeyframer *cloudKeyframer, crossplatform::Texture *depth_tex, vec4 depthViewportXYWH, const clouds::TransparencyAtmospherics &t, float brightnessToUnity, clouds::BaseWeatherRenderer *weatherRenderer)¶
Main render call.
-
void RenderOverlay(crossplatform::GraphicsDeviceContext &deviceContext, Storm*)¶
Render debug information.
-
void RecompileShaders()¶
Platform-dependent function to reload the shaders - only use this for debug purposes.
-
BaseLightningRenderer(simul::sky::BaseSkyInterface *sk)¶