Interface SkyAtmosphereComputeRendererConfig

interface SkyAtmosphereComputeRendererConfig {
    atmosphere?: Atmosphere;
    customUniformsSource?: CustomUniformsSourceConfig;
    fromKilometersScale?: number;
    initializeConstantLuts?: boolean;
    label?: string;
    lights?: AtmosphereLightsConfig;
    lookUpTables?: SkyAtmosphereLutConfig;
    mieHgDrainePhase?: MieHgDPhaseConfig;
    shadow?: ShadowConfig;
    skyRenderer: SkyRendererComputeConfig;
}

Hierarchy (view full)

Properties

atmosphere?: Atmosphere

The atmosphere parameters for this SkyAtmosphereLutRenderer. Defaults to: makeEarthAtmosphere with the scale parameter set to SkyAtmosphereRendererConfig.fromKilometersScale.

customUniformsSource?: CustomUniformsSourceConfig

Config for externally controlled buffers containing the parameters otherwise controlled by an internal buffer storing Uniforms.

If this is set, no internal buffer for storing Uniforms will be created or updated.

fromKilometersScale?: number

The scale factor to scale points in the scale 1 = 1km to a different scale, e.g., for 1 = 1m set this to 1000.

The distance scale used by SkyAtmosphereLutRenderers is 1 = 1km. This is used to correctly render the sky / atmosphere in scenes with a different scale.

Defaults to 1.0.

initializeConstantLuts?: boolean

If true, all lookup tables that only depend on constant atmosphere parameters are rendered at creation time.

Defaults to true.

label?: string

A name used to lable internal resources and pipelines.

Defaults to "atmosphere"

Config for atmosphere lights (sun, moon, sun disk).

lookUpTables?: SkyAtmosphereLutConfig

Config for internally used lookup tables.

mieHgDrainePhase?: MieHgDPhaseConfig

Config for the Henyey-Greenstein + Draine (https://research.nvidia.com/labs/rtr/approximate-mie/) approximation of the Mie phase function.

If this is set, the renderer uses the Henyey-Greenstein + Draine approximation instead of the Cornette-Shanks approximation.

Defaults to undefined.

shadow?: ShadowConfig

Config for external resources required by a SkyAtmosphereLutRenderer to integrate user-controlled shadow maps.

Config for the sky rendering post process.