Utility class to control the Nishita sky model.

Static variables

@:value(null)staticdata:NishitaData = null

Static methods

staticrecompute(world:WorldData):Void

Recomputes the nishita lookup table after the density settings changed. Do not call this method on every frame (it's slow)!

staticsetDensity(world:WorldData, densityAir:FastFloat, densityDust:FastFloat, densityOzone:FastFloat):Void

Sets the sky's density parameters and calls recompute() afterwards.