Skip to content

Function: injectClip() ​

ts
function injectClip(material, clip): void;

Experimental

Discard fragments outside the clip box in a three.js material (HC_CLIP define).

Parameters ​

ParameterType
materialMaterial
clipClipUniforms

Returns ​

void

Released under the MIT License.