Creates a new Transmission 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_transmission
provides a common type of optical transparency: infinitely-thin materials with no refraction, scattering, or dispersion.While default PBR materials using alpha blending become invisible as their opacity approaches zero, a transmissive material continues to reflect light in a glass-like manner, even at low transmission values. When combined with KHRMaterialsVolume, transmission may be used for thicker materials and refractive effects.
Properties:
Example
The
KHRMaterialsTransmission
class provides a single ExtensionProperty type,Transmission
, which may be attached to any Material instance. For example:import { KHRMaterialsTransmission, Transmission } from '@gltf-transform/extensions'; // Create an Extension attached to the Document. const transmissionExtension = document.createExtension(KHRMaterialsTransmission); // Create a Transmission property. const transmission = transmissionExtension.createTransmission() .setTransmissionFactor(1.0); // Attach the property to a Material. material.setExtension('KHR_materials_transmission', transmission);