Creates a new Volume 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.
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 • TypeDoc documentation • Copyright 2021 under MIT license
MaterialsVolume
KHR_materials_volume adds refraction, absorption, or scattering to a glTF PBR material already using transmission or translucency.
By default, a glTF 2.0 material describes the scattering properties of a surface enclosing an infinitely thin volume. The surface defined by the mesh represents a thin wall. The volume extension makes it possible to turn the surface into an interface between volumes. The mesh to which the material is attached defines the boundaries of an homogeneous medium and therefore must be manifold. Volumes provide effects like refraction, absorption and scattering. Scattering effects will require future (TBD) extensions.
The volume extension must be combined with MaterialsTransmission or
KHR_materials_translucency
in order to define entry of light into the volume.Properties:
Example
The
MaterialsVolume
class provides a single ExtensionProperty type,Volume
, which may be attached to any Material instance. For example:A thickness texture is required in most realtime renderers, and can be baked in software such as Blender or Substance Painter. When
thicknessFactor = 0
, all volumetric effects are disabled.