TangentGenerator

TangentGenerator

The TangentGenerator can generate and add a buffer with tangent information to a MeshData

Constructor

new TangentGenerator()

Methods

(static) addTangentBuffer(meshData, uvUnitopt)

Generates and adds a buffer with tangent information to a MeshData object

Parameters:
Name Type Attributes Default Description
meshData MeshData

MeshData object to use for generating tangent coords

uvUnit number <optional>
0

Texture coord index to use as base for tangent generation