Go to:
Related nodes. Attributes.
Use a Volume Shader when you want to completely control
the color, transparency, and matte opacity of a volumetric material.
This kind of shader does no shading calculation of any kind. Rather,
it allows you to connect other attributes directly to its
color, transparency, and matte opacity. It completely ignores everything
else that would normally affect a volume shader.
For example, if you connect the Translate attribute of an object
to the Out Color attribute of a Volume Shader, then the color
of the shader will depend on the position of the object in space.
If you are connecting this node manually to a shading group, then
you should connect the Out Color attribute of the Volume Shader to
the Volume Material input of the the
shading group. (This is sometimes called the Volume Shader input.)
(Most other shaders connect to the Surface Shader
input.)
In the table below, important attributes have their names indicated
in bold in the decription column.
This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
volumeShader | dependNode | shader/volume/utility | kVolumeShader | kBase kNamedObject kDependencyNode kVolumeShader |
Related nodes
lambert, reflect, phongE, phong, blinn, anisotropic, simpleVolumeShader, surfaceShader, displacementShader, layeredShader, useBackground, defaultShaderList, shadingMap
Attributes (12)
outColor, outColorB, outColorG, outColorR, outMatteOpacity, outMatteOpacityB, outMatteOpacityG, outMatteOpacityR, outTransparency, outTransparencyB, outTransparencyG, outTransparencyR
Long name (short name) | Type | Default | Flags |
---|
|
outColor
(oc )
| float3 | 0.0, 0.0, 0.0 |     |
|
|
|
|
|
outTransparency
(ot )
| float3 | 0.0, 0.0, 0.0 |     |
|
| outTransparencyR
(otr )
| float | 0.0 |     | |
|
| outTransparencyG
(otg )
| float | 0.0 |     | |
|
| outTransparencyB
(otb )
| float | 0.0 |     | |
|
|
outMatteOpacity
(omo )
| float3 | 1.0, 1.0, 1.0 |     |
|
| outMatteOpacityR
(omor )
| float | 0.0 |     | |
|
| outMatteOpacityG
(omog )
| float | 0.0 |     | |
|
| outMatteOpacityB
(omob )
| float | 0.0 |     | |
|