Post

VolumeMaterialExtension

Overview

VolumeMaterialExtension is an extension for the PhysicalMaterial and SpecularGlossinessMaterial nodes. For this node to have an effect, add an EnvironmentLight node.

The VolumeMaterialExtension node belongs to the X_ITE component and requires at least level 1, its default container field is extensions. It is available from X3D version 4.0 or higher.

Info: Please note that this node is still experimental, i.e. the functionality of this node may change in future versions of X_ITE.

Hierarchy

1
2
3
+ X3DNode
  + X3DMaterialExtensionNode
    + VolumeMaterialExtension

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFFloat [in, out] thickness 0 [0,∞)

The thickness of the volume beneath the surface. The value is given in the coordinate space of the mesh. If the value is 0 the material is thin-walled. Otherwise the material is a volume boundary. The doubleSided property has no effect on volume boundaries.

SFString [in, out] thicknessTextureMapping “”

Input/Output field thicknessTextureMapping.

SFNode [in, out] thicknessTexture NULL [X3DSingleTextureNode]

A texture that defines the thickness, stored in the G channel. This will be multiplied by thicknessFactor.

SFFloat [in, out] attenuationDistance 1000000 [0,∞)

Density of the medium given as the average distance that light travels in the medium before interacting with a particle. The value is given in world space.

SFColor [in, out] attenuationColor 1 1 1 [0,1]

The color that white light turns into due to absorption when reaching the attenuation distance.

Example

See Also

This post is licensed under CC BY 4.0 by the author.