Skip to main content

@novorender/web_app / RenderStateClippingPlane

Interface: RenderStateClippingPlane

Render state for a single clipping plane.

Properties

color?

readonly optional color: RGBA;

The color to use when visualizing the clipping plane, or undefined to not visualize.

Defined in

@novorender/core3d/state/index.ts:479


normalOffset

readonly normalOffset: ReadonlyVec4;

The half-space normal (xyz) and signed offset/distance (w) of the plane.

Defined in

@novorender/core3d/state/index.ts:476


outline?

readonly optional outline: object;

Geometry outline settings for this clipping plane.

enabled

enabled: boolean;

Whether to render outlines or not.

Remarks

Currently, due to limitations in WebGL2, outlines are a costly features that is disabled on weaker devices. Even on more powerful GPUs this feature should be used sparingly.

lineColor?

optional lineColor: RGB;

The color to use for the outlines of this plane, or undefined to use the default outline color.

Defined in

@novorender/core3d/state/index.ts:482