API

Interface MetallicReflectanceOptions

Options for setPbrMetallicReflectance. Mirrors the dielectric-reflectance fields of PbrMaterialProps (BJS metallicReflectance* / KHR_materials_specular).

interface MetallicReflectanceOptions {
    color?: readonly [number, number, number];
    f0Factor?: number;
    reflectanceTexture?: Texture2D;
    specularWeight?: number;
    texture?: Texture2D;
    useOnlyMetallicFromTexture?: boolean;
}
Index
color?: readonly [number, number, number]

Linear-RGB tint for dielectric reflectance (BJS metallicReflectanceColor).

f0Factor?: number

Scales dielectric F0 (BJS metallicF0Factor).

reflectanceTexture?: Texture2D

RGB tints reflectance only (BJS reflectanceTexture).

specularWeight?: number

Grazing specular/F90 weight.

texture?: Texture2D

RGB tints reflectance, A scales F0 (BJS metallicReflectanceTexture).

useOnlyMetallicFromTexture?: boolean

When true + both reflectance textures set, texture only contributes A (F0 scalar).