Capítulo 393 de 859
This node is used in NodeMaterial to setup the clipping which can happen hardware-accelerated (if supported) and optionally use alpha-to-coverage for anti-aliasing clipped edges.
Constructor
| Signature |
|---|
| `new ClippingNode( scope : 'default' |
Properties
| Property | Description |
|---|---|
| `.scope : 'default' | 'hardware' |
Methods
| Method | Description |
|---|---|
.setup( builder : NodeBuilder ) : Node | Setups the node depending on the selected scope. |
.setupAlphaToCoverage( intersectionPlanes : Array.<Vector4>, unionPlanes : Array.<Vector4> ) : Node | Setups alpha to coverage. |
.setupDefault( intersectionPlanes : Array.<Vector4>, unionPlanes : Array.<Vector4> ) : Node | Setups the default clipping. |
.setupHardwareClipping( unionPlanes : Array.<Vector4>, builder : NodeBuilder ) : Node | Setups hardware clipping. |