API

Interface ITransmissionHelperOptions

Options for the TransmissionHelper.

interface ITransmissionHelperOptions {
    clearColor?: any;
    generateMipmaps: boolean;
    lodGenerationOffset: number;
    lodGenerationScale: number;
    renderSize: number;
    renderTargetTextureType: number;
    samples: number;
}
Index
clearColor?: any

Clear color of the opaque texture. If not provided, use the scene clear color (which will be converted to linear space). If provided, should be in linear space

generateMipmaps: boolean

Defines if the mipmaps for the refraction render target texture must be generated (default: true)

lodGenerationOffset: number

Offset to apply when selecting the LOD level to sample the refraction texture (default: -4)

lodGenerationScale: number

Scale to apply when selecting the LOD level to sample the refraction texture (default: 1)

renderSize: number

The size of the render buffers (default: 1024)

renderTargetTextureType: number

Type of the refraction render target texture (default: TEXTURETYPE_HALF_FLOAT)

samples: number

The number of samples to use when generating the render target texture for opaque meshes (default: 4)