Namespace: GeometryTools

SQR.GeometryTools

Tools to work with geometries/buffers.

Source:

Methods

(static) batch(container) → {SQR.Transform}

Combines all the geometries in a tree into one geometry. It assumes (but does not check) that all the children can be rendered using the same shader and that all their buffers have the same layout.

Parameters:
Name Type Description
container SQR.Transform

the root of the tree to combine. This object and all it's children will be combined.

Source:
Returns:

the same object as passed in the argument. It will have no children and will have a buffer containing all the combine geometries. If the container shader was not set it will inherit the shader from the first child that had one.

Type
SQR.Transform