Interface SkyAtmosphereComputeRendererConfig

interface SkyAtmosphereComputeRendererConfig {
    atmosphere?: Atmosphere;
    customUniformsSource?: CustomUniformsSourceConfig;
    fromKilometersScale?: number;
    initializeConstantLuts?: boolean;
    label?: string;
    lights?: AtmosphereLightsConfig;
    lookUpTables?: SkyAtmosphereLutConfig;
    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.

shadow?: ShadowConfig

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

Config for the sky rendering post process.