API

Interface ThicknessProps

Thickness sub-feature. Controls how thick the material is at each point.

interface ThicknessProps {
    max?: number;
    min?: number;
    texture?: Texture2D;
    useGlTFChannel?: boolean;
}
Index
max?: number

Maximum thickness. Default 1.0.

min?: number

Minimum thickness. Default 0.

texture?: Texture2D

Thickness map texture. R channel is sampled by default (matches existing BJS non-glTF path). Set useGlTFChannel=true for G-channel sampling as specified by KHR_materials_volume.

useGlTFChannel?: boolean

When true, sample the thickness texture's G channel (KHR_materials_volume). Default false — samples R channel (BJS default). Set by the glTF loader.