This class holds the precalculated result of the inner scattering integral
of the Nishita sky model. The outer integral is calculated in
armory/Shaders/std/sky.glsl
.
See also:
Static variables
staticjSteps:Int = 8
Amount of steps for calculating the inner scattering integral. Heigher values are more precise but take longer to compute.
staticlutAngleSteps:Int = 128
The amount of individual sun angle steps stored in the LUT (and the height of the LUT image).
staticlutHeightSteps:Int = 128
The amount of individual sample heights stored in the LUT (and the width of the LUT image).
staticozoneCoeff:Vec3 = new Vec3(1.59051840791988e-6, 0.00000096707041180970, 0.00000007309568762914)
Ozone scattering coefficient.
staticradiusPlanet:Float = 6360.0
Radius of the planet in kilometers. The default value is the earth radius as defined in Cycles.
Constructor
Variables
Methods
computeLUT(density:Vec3):Void
Computes the LUT texture for the given density values.
Parameters:
density | 3D vector of air density, dust density, ozone density |
---|
sampleSecondaryRay(height:FastFloat, sunTheta:FastFloat, density:Vec3):Vec3
Calculates the integral for the secondary ray.