new NormalTangentGenerator()
Members
-
<static> MODE_NORMALS
-
A bit flag to generate normal vectors
-
<static> MODE_TANGENTS
-
A bit flag to generate tangent vectors
Methods
-
generate(mesh, mode [, useFaceWeights] [, flip])
-
Generates normal and/or tangent vectors for a {@codelink Mesh}.
Parameters:
Name Type Argument Description mesh
The target {@codelink Mesh}
mode
Defines which vectors to use. Use
NormalTangentGenerator#MODE_NORMALS
|NormalTangentGenerator#MODE_TANGENTS
useFaceWeights
<optional>
Defines whether or not the face sizes should play a role in how much weight their contribute to the vertex normal.
flip
<optional>
Defines whether or not the face normals should be flipped. Could be required for some mirrored scaling.