Threepipe gltf-transform Plugins
    Preparing search index...

    Class GLTFSpecGlossinessConverterPlugin

    GLTFSpecGlossinessConverterPlugin

    Browser-specific plugin that uses WebIO for spec-gloss to metal-rough conversion.

    To use this plugin, simply add it to the viewer and import a file with specular glossiness materials. If confirm is set to true, a confirmation dialog will be shown before the conversion.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    confirm: boolean = true

    Whether to show the confirmation dialog when loading a GLTF file with specular glossiness materials. If set to false, the conversion will be done automatically without confirmation. To disable the conversion entirely, disable the plugin.

    confirmMessage: string = 'GLTF Load: This file includes specular glossiness materials, do you want to convert it to metallic roughness before load?'

    The message to show in the confirmation dialog when loading a GLTF file with specular glossiness materials.

    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    enabled: boolean = true
    isViewerPluginSync: true = ...
    toJSON: any = undefined
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    OldPluginType?: string
    PluginType: "GLTFSpecGlossinessConverterPlugin" = 'GLTFSpecGlossinessConverterPlugin'

    Accessors

    Methods