Interface AerialPerspectiveLutConfig

interface AerialPerspectiveLutConfig {
    affectedByShadow?: boolean;
    distancePerSlice?: number;
    format?: GPUTextureFormat;
    randomizeRayOffsets?: boolean;
    size?: [number, number, number];
}

Properties

affectedByShadow?: boolean

If this is true and SkyAtmosphereRendererConfig.shadow is defined, user-controlled shadow mapping will be evaluated for every sample when rendering the aerial perspective lookup table.

Defaults to true.

distancePerSlice?: number

The distance each slice of the areal perspective lookup table covers in kilometers.

Defaults to 4 km.

format?: GPUTextureFormat

The format of the aerial perspective lookup table.

Must support GPUTextureUsage.STORAGE_BINDING with "write-only" access. Must support GPUTextureSampleType "float". Should be at least a three component format.

Defaults to: "rgba16float"

randomizeRayOffsets?: boolean

Might results in smoother volumetric shadows but introduces visible noise.

Defaults to false.

size?: [number, number, number]

The size of the aerial perspective lookup table.

Defaults to [32, 32, 32]