Optional
lutSampler: GPUSamplerPrivate
#atmosphereReadonly
aerialThe aerial perspective look up table. Stores the aerial perspective in a volume fit to the view frustum.
Parameterized by x and y corresponding to the image plane and z being the view depth (range: [0, AerialPerspectiveLutConfig.size[2] * AerialPerspectiveLutConfig.distancePerSlice]).
Readonly
atmosphereA uniform buffer of size ATMOSPHERE_BUFFER_SIZE storing the Atmosphere's parameters.
Readonly
deviceThe WebGPU device the resources are allocated from.
Readonly
labelA name that is propagated to the WebGPU resources.
Readonly
lutA linear sampler used to sample the look up tables.
Readonly
multiThe multiple scattering look up table. Stores multiple scattering contribution.
Paramterized by the sun / zenith angle in x (range: [π, 0]) and the altitude in y (range: [0, top], where top is the height of the atmosphere).
Readonly
skyThe sky view look up table. Stores the distant sky around the camera with respect to it's altitude within the atmosphere.
Parameterized by the longitude in x (range: [0, 2π]) and latitude in y (range: [-π/2, π/2]).
Readonly
transmittanceThe transmittance look up table. Stores the medium transmittance toward the sun.
Parameterized by the view / zenith angle in x and the altitude in y.
Optional
Readonly
uniformsA uniform buffer of size UNIFORMS_BUFFER_SIZE storing parameters set through Uniforms.
If custom uniform buffers are used, this is undefined (see CustomUniformsSourceConfig).
Updates the SkyAtmosphereResources.atmosphereBuffer using a given Atmosphere.
Overwrites this instance's internal Atmosphere parameters.
the Atmosphere to write to the atmosphereBuffer.
atmosphereToFloatArray Internally call atmosphereToFloatArray to convert the Atmosphere to a Float32Array
.
Updates the SkyAtmosphereResources.uniformsBuffer using a given Uniforms.
the Uniforms to write to the atmosphereBuffer.
uniformsToFloatArray Internally call uniformsToFloatArray to convert the Uniforms to a Float32Array
.
Atmosphere parameters.
Set using updateAtmosphere.