DepthMask3D
GPU GpuBuilds a mask from scene depth for compositing and selective post-processing.
DepthMask3D turns the incoming depth buffer into a soft near, far, or range mask that can be used for fog, blending, and layered image treatment.
Parameters
| Name | Type | Description |
|---|---|---|
| threshold | float | Depth threshold for the mask. |
| softness | float | Feathering around the threshold. |
| mode | int | Mask mode: near, far, or range. |
| invert | int | Inverts the final mask output. |
Ports
| Name | Direction | Type |
|---|---|---|
| color | Input | TEXTURE |
| depth | Input | TEXTURE |
| texture | Output | TEXTURE |