Interface TransmittanceLutConfig

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

Properties

format?: GPUTextureFormat

The format of the transmittance 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 transmittance lookup table.

Clamped to max(40, sampleCount)

Defaults to 40

size?: [number, number]

The size of the transmittance lookup table.

Defaults to [256, 64]