ID 遮罩节点¶
The ID Mask Node creates a mask for a particular object or material in the render. It relies on the Object Index or Material Index render pass, which is only available when rendering with Cycles.
See also
This node is superseded by the Cryptomatte 节点. Cryptomatte is more versatile and is supported by both Cycles and EEVEE.
输入¶
- ID 值
Input for the Object Index or Material Index render pass. Once a pass is enabled, it can be accessed through the IndexOB or IndexMA slot of the 渲染层节点.
属性¶
- 编号
The index for which to create a mask. This index can be configured for objects at
, and for materials at .- Anti-Aliasing
Whether to smooth the mask edges.
输出¶
- Alpha
A grayscale image that's white where the object exists and black where it does not.
例子¶
In the example below, the left and right cubes are assigned a Pass Index of 1 and 2 respectively. We extract a mask for the left cube, then use it to turn that cube red with a 混合节点. The masks for the other Pass Indexes are also shown.
局限¶
不支持体积物体。