Creates a new Anisotropy property for use on a Material.
Disables and removes the extension from the Document.
Indicates to the client whether it is OK to load the asset when this extension is not recognized. Optional extensions are generally preferred, if there is not a good reason to require a client to completely fail when an extension isn't known.
Lists all ExtensionProperty instances associated with, or created by, this extension. Includes only instances that are attached to the Document's graph; detached instances will be excluded.
Indicates to the client whether it is OK to load the asset when this extension is not recognized. Optional extensions are generally preferred, if there is not a good reason to require a client to completely fail when an extension isn't known.
Made by Don McCurdy. Documentation built with greendoc and published under Creative Commons Attribution 3.0.
KHR_materials_anisotropy
defines anisotropy (directionally-dependent reflections) on a PBR material.This extension defines the anisotropic property of a material as observable with brushed metals for instance. An asymmetric specular lobe model is introduced to allow for such phenomena. The visually distinct feature of that lobe is the elongated appearance of the specular reflection. For a single punctual light source, the specular reflection will eventually degenerate into a zero width line in the limit, that is where the material is fully anisotropic, as opposed to be fully isotropic in which case the specular reflection is radially symmetric.
Properties:
Example
The
KHRMaterialsAnisotropy
class provides a single ExtensionProperty type,Anisotropy
, which may be attached to any Material instance. For example:import { KHRMaterialsAnisotropy, Anisotropy } from '@gltf-transform/extensions'; // Create an Extension attached to the Document. const anisotropyExtension = document.createExtension(KHRMaterialsAnisotropy); // Create an Anisotropy property. const anisotropy = anisotropyExtension.createAnisotropy() .setAnisotropyStrength(1.0) .setAnisotropyRotation(Math.PI / 4); // Attach the property to a Material. material.setExtension('KHR_materials_anisotropy', anisotropy);