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

Constructors

Properties

enabled: boolean = true
materialExtension: MaterialExtension = ...
ANISOTROPY_GLTF_EXTENSION: "WEBGI_materials_anisotropy" = 'WEBGI_materials_anisotropy'
PluginType: "AnisotropyPlugin" = 'AnisotropyPlugin'

Methods

  • Parameters

    • material: IMaterial
    • Optionalmap: ITexture
    • Optionalfactor: number
    • Optionalnoise: number
    • OptionaldirectionMode: "CONSTANT" | "ROTATION" | "DIRECTION"

    Returns boolean

  • Returns void