Class ClearcoatTintPlugin

Clearcoat Tint Plugin Adds a material extension to PhysicalMaterial which adds tint and thickness to the built-in clearcoat properties. It also adds a UI to the material to edit the settings. It uses WEBGI_materials_clearcoat_tint glTF extension to save the settings in glTF files.

Hierarchy (View Summary)

Constructors

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean = true
materialExtension: MaterialExtension = ...
uiConfig?: UiObjectConfig = undefined
CLEARCOAT_TINT_GLTF_EXTENSION: "WEBGI_materials_clearcoat_tint" = 'WEBGI_materials_clearcoat_tint'
OldPluginType?: string
PluginType: "ClearcoatTintPlugin" = 'ClearcoatTintPlugin'

Accessors

Methods

  • Parameters

    • material: PhysicalMaterial
    • Optionalparams: {
          enableTint?: boolean;
          ior?: number;
          thickness?: number;
          tintColor?: string | number | Color;
      }

    Returns
        | undefined
        | null
        | {
            enableTint?: boolean;
            ior?: number;
            thickness?: number;
            tintColor?: string
            | number
            | Color;
        }