TangentSpaceMesh
Builds Filament-style TANGENTS buffers (tangent-space quaternions) from an input mesh, with a choice of algorithms. Supersedes SurfaceOrientation.
If the chosen algorithm didn't remesh the input (remeshed), use the data you provided instead of querying it back. Getting positions or UVs that weren't provided as input aborts.
Types
Properties
The native object, for interop with code calling the Fila* C API directly. Read-only: this wrapper owns it.
The number of output triangles.
The number of output vertices, which differs from the input's if the mesh was remeshed.
Functions
Copies out an auxiliary attribute given to Builder.aux as floats, components (2–4) per vertex.
Copies out an auxiliary attribute given to Builder.aux as unsigned shorts, components (3–4) per vertex.
Copies out the tangent-space quaternions as 4 half floats per vertex (quath).
Copies out the output positions, 3 floats per vertex.
Copies out the tangent-space quaternions, 4 floats per vertex.
Copies out the tangent-space quaternions as 4 normalized shorts per vertex (short4).
Copies out the output triangles in 32-bit indices, 3 per triangle.
Copies out the output triangles in 16-bit indices, 3 per triangle.
Copies out the output UVs, 2 floats per vertex.