transformToWorldCoordinates
Transforms a geometry instance to world coordinates. This changes the instance's modelMatrix
to Matrix4.IDENTITY and transforms the following attributes if they are present: position
, normal
, tangent
, and bitangent
.
GeometryPipeline.transformToWorldCoordinates(instance);
Content copied to clipboard
Return
The modified instance
argument, with its attributes transforms to world coordinates.
Parameters
instance
The geometry instance to modify.