three-cad-viewer
    Preparing search index...

    Interface MaterialAppearance

    Material appearance definition for Studio mode.

    All fields are optional. Only provided fields override defaults. In Studio mode the viewer uses MeshPhysicalMaterial; properties left unset default to their "off" values (transmission=0, clearcoat=0, etc.) which the shader skips at near-zero cost.

    This is a data-format interface (describes JSON input), not a Three.js material. Texture string fields are either a data URI or a URL resolved against the HTML page.

    interface MaterialAppearance {
        alphaCutoff?: number;
        alphaMode?: "OPAQUE" | "MASK" | "BLEND";
        anisotropy?: number;
        anisotropyMap?: string;
        anisotropyRotation?: number;
        aoMap?: string;
        attenuationColor?: RGBColor;
        attenuationDistance?: number;
        builtin?: string;
        clearcoat?: number;
        clearcoatMap?: string;
        clearcoatNormalMap?: string;
        clearcoatRoughness?: number;
        clearcoatRoughnessMap?: string;
        color?: string | RGBAColor;
        doubleSided?: boolean;
        emissive?: RGBColor;
        emissiveIntensity?: number;
        emissiveMap?: string;
        ior?: number;
        map?: string;
        metalness?: number;
        metalnessMap?: string;
        name?: string;
        normalMap?: string;
        roughness?: number;
        roughnessMap?: string;
        sheen?: number;
        sheenColor?: RGBColor;
        sheenColorMap?: string;
        sheenRoughness?: number;
        sheenRoughnessMap?: string;
        specularColor?: RGBColor;
        specularColorMap?: string;
        specularIntensity?: number;
        specularIntensityMap?: string;
        thickness?: number;
        thicknessMap?: string;
        transmission?: number;
        transmissionMap?: string;
        unlit?: boolean;
    }
    Index

    Properties

    alphaCutoff?: number

    Alpha cutoff threshold for MASK mode (default: 0.5)

    alphaMode?: "OPAQUE" | "MASK" | "BLEND"

    Alpha blending mode

    anisotropy?: number

    Anisotropy strength, 0-1

    anisotropyMap?: string

    Anisotropy direction texture reference

    anisotropyRotation?: number

    Anisotropy rotation in radians

    aoMap?: string

    Ambient occlusion texture reference

    attenuationColor?: RGBColor

    Attenuation color, linear RGB

    attenuationDistance?: number

    Attenuation distance for volume absorption

    builtin?: string

    Reference to a built-in preset (e.g., "stainless-steel", "car-paint")

    clearcoat?: number

    Clearcoat intensity, 0-1

    clearcoatMap?: string

    Clearcoat intensity texture reference

    clearcoatNormalMap?: string

    Clearcoat normal map texture reference

    clearcoatRoughness?: number

    Clearcoat roughness

    clearcoatRoughnessMap?: string

    Clearcoat roughness texture reference

    color?: string | RGBAColor

    sRGB base color. Accepts RGBA tuple [r,g,b,a] (0-1) or CSS hex string "#rrggbb".

    doubleSided?: boolean

    Render both sides of faces (THREE.DoubleSide)

    emissive?: RGBColor

    Emissive color, linear RGB

    emissiveIntensity?: number

    Emissive intensity multiplier (default: 1.0)

    emissiveMap?: string

    Emissive map texture reference

    ior?: number

    Index of refraction (default: 1.5)

    map?: string

    Texture reference for base color

    metalness?: number

    Metalness factor, 0-1 (default: 0.0)

    metalnessMap?: string

    Metalness map texture reference

    name?: string

    Display name

    normalMap?: string

    Normal map texture reference

    roughness?: number

    Roughness factor, 0-1 (default: 0.5)

    roughnessMap?: string

    Roughness map texture reference

    sheen?: number

    Sheen intensity, 0-1 (required to enable sheen layer)

    sheenColor?: RGBColor

    Sheen tint color, linear RGB

    sheenColorMap?: string

    Sheen color texture reference

    sheenRoughness?: number

    Sheen roughness

    sheenRoughnessMap?: string

    Sheen roughness texture reference

    specularColor?: RGBColor

    Specular tint color, linear RGB

    specularColorMap?: string

    Specular color texture reference

    specularIntensity?: number

    Specular intensity, 0-1

    specularIntensityMap?: string

    Specular intensity texture reference

    thickness?: number

    Thickness for volume effects

    thicknessMap?: string

    Thickness map texture reference

    transmission?: number

    Transmission factor, 0-1

    transmissionMap?: string

    Transmission map texture reference

    unlit?: boolean

    Use MeshBasicMaterial (unlit, no shading)