Interface MultiScatteringLutConfig

interface MultiScatteringLutConfig {
    format?: GPUTextureFormat;
    sampleCount?: number;
    size?: [number, number];
}

Properties

format?: GPUTextureFormat

The format of the multiple scattering 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"

sampleCount?: number

The ray marching sample count to use when rendering the multiple scattering lookup table.

Clamped to max(10, sampleCount)

Defaults to 20

size?: [number, number]

The size of the multiple scattering lookup table.

Defaults to [32, 32]