Cloud Lighting

class simul::clouds::CloudLighting

Public Functions

CloudLighting()

Constructor.

~CloudLighting()

Destructor.

void RestoreDeviceObjects(crossplatform::RenderPlatform *r)

Platform-dependent function called when initializing the renderer.

void InvalidateDeviceObjects()

Platform-dependent function called when uninitializing the renderer.

void RecompileShaders()

Platform-dependent function to reload the shaders - only use this for debug purposes.

void RelightBlock(crossplatform::DeviceContext &deviceContext, int3 blockPos, int3 blockFill, vec3 dir_to_light, CloudWindow &cloudWindow, CloudRenderingOptions &cloudRenderingOptions, crossplatform::Texture *cloud_texture, crossplatform::Texture *light_texture, bool init)

Calculate the cloud lighting.