fitToUnsignedShortIndices

Splits a geometry into multiple geometries, if necessary, to ensure that indices in the indices fit into unsigned shorts. This is used to meet the WebGL requirements when unsigned int indices are not supported.

If the geometry does not have any indices, this function has no effect.

const geometries = GeometryPipeline.fitToUnsignedShortIndices(geometry);

Return

An array of geometries, each with indices that fit into unsigned shorts.

Parameters

geometry

The geometry to be split into multiple geometries.

See also