Capítulo 95 de 859

Chapter 95: VolumeNodeMaterial

Core Idea

Volume node material.

Key Concepts

  • isVolumeNodeMaterial : boolean (readonly): This flag can be used for type testing.
  • offsetNode : Node.<float>: Offsets the distance a ray has been traveled through a volume. Can be used to implement dithering to reduce banding.
  • scatteringNode : function | FunctionNode.<vec4>: Node used for scattering calculations.
  • steps : number: Number of steps used for raymarching.

Reference Tables

Constructor

Signature
new VolumeNodeMaterial( parameters : Object )

Properties

PropertyDescription
.isVolumeNodeMaterial : boolean (readonly)This flag can be used for type testing.
.offsetNode : Node.<float>Offsets the distance a ray has been traveled through a volume. Can be used to implement dithering to reduce banding.
`.scatteringNode : functionFunctionNode.<vec4>`
.steps : numberNumber of steps used for raymarching.

Key Takeaways

  1. VolumeNodeMaterial extends: EventDispatcher → Material → NodeMaterial
  2. Most relevant properties: isVolumeNodeMaterial, offsetNode, scatteringNode, steps.

Connects To