WebGi Rendering Plugins
    Preparing search index...

    Class AnisotropyPlugin

    Anisotropy Plugin Adds a material extension to PhysicalMaterial to support anisotropy maps. Anisotropy is a directional material property that causes the material to reflect light differently depending on the direction of the surface. This is useful for materials like brushed metal, fabric, etc. This is a separate implementation than the anisotropy property in three.js which satisfies KHR_materials_anisotropy glTF extension. It includes some additional properties like support for both rotation and directional maps(like Blender), noise, interfacing with the progressive plugin etc.

    It also adds a UI to the material to edit the settings. It uses WEBGI_materials_anisotropy glTF extension to save the settings in glTF files.

    Hierarchy

    • AViewerPluginSync
      • AnisotropyPlugin
    Index

    Constructors

    Properties

    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    enabled: boolean = true
    isViewerPluginSync: true = ...
    materialExtension: MaterialExtension = ...
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    ANISOTROPY_GLTF_EXTENSION: "WEBGI_materials_anisotropy" = 'WEBGI_materials_anisotropy'
    OldPluginType?: string
    PluginType: "AnisotropyPlugin" = 'AnisotropyPlugin'

    Accessors

    Methods

    • Parameters

      • e: IViewerEvent

      Returns IViewerEvent

    • Parameters

      • Optionalprefix: string

      Returns string

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Returns ISerializedConfig | Record<string, never>

    • Parameters

      • state: any

      Returns Promise<void>

    • Parameters

      • Optionalmeta: SerializationMetaType

      Returns ISerializedConfig