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
new ClippingNode(scope?)| Parameter | Type | Default Value |
|---|---|---|
| scope? | "default" | "hardware" | "alphaToCoverage" | ClippingNode.DEFAULT |
Constructs a new clipping node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| scope | "default" | "hardware" | "alphaToCoverage" | — | |
| hardwareClipping | any | — | |
| Method | Type | |
|---|---|---|
| setup | (builder: NodeBuilder) => Node | |
| setupAlphaToCoverage | (intersectionPlanes: Array<…>, unionPlanes: Array<…>) => Node | |
| setupDefault | (intersectionPlanes: Array<…>, unionPlanes: Array<…>) => Node | |
| setupHardwareClipping | (unionPlanes: Array<…>, builder: NodeBuilder) => Node | |
Extends
NodeTSL function for setting up the default clipping logic.
Returns
ClippingNodeTSL function for setting up alpha to coverage.
Returns
ClippingNodeTSL function for setting up hardware-based clipping.
Returns
ClippingNode