API

Function setClipPlane

  • Set the scene clip plane and register its scene-uniform contributor.

    The clip plane is opt-in: importing setClipPlane is what pulls the clip-plane UBO writer into the bundle, keeping those bytes out of scenes that never clip.

    Parameters

    • scene: SceneContext

      The scene to configure.

    • plane: ClipPlane

      The clip plane as [a, b, c, d] coefficients of a·x + b·y + c·z + d.

    Returns void