Capítulo 511 de 859
This node offers a collection of features in context of the depth logic in the fragment shader. Depending on ViewportDepthNode#scope, it can be used to define a depth value for the current fragment or for depth evaluation purposes.
ViewportDepthNode.DEPTH scope.Constructor
| Signature |
|---|
| `new ViewportDepthNode( scope : 'depth' |
Properties
| Property | Description |
|---|---|
.isViewportDepthNode : boolean (readonly) | This flag can be used for type testing. |
| `.scope : 'depth' | 'depthBase' |
.valueNode : Node | Can be used to define a custom depth value. The property is ignored in the ViewportDepthNode.DEPTH scope. |