ClippingNode

Last modified: Jun 30, 2024

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?)
ParameterTypeDefault Value
scope?"default" | "hardware" | "alphaToCoverage"ClippingNode.DEFAULT

Constructs a new clipping node.

AccessorType

Properties

PropertyTypeDefault Value
scope"default" | "hardware" | "alphaToCoverage"
hardwareClippingany
MethodType

Extends

Node

clipping

TSL function for setting up the default clipping logic.

Returns

ClippingNode

clippingAlpha

TSL function for setting up alpha to coverage.

Returns

ClippingNode

hardwareClipping

TSL function for setting up hardware-based clipping.

Returns

ClippingNode