Capítulo 333 de 859
Visualizes an object's vertex tangents.
Requires that tangents have been specified in the geometry as a buffer attribute or have been calculated using BufferGeometry#computeTangents.
false since the object's world transformation is encoded in the helper's geometry data.const helper = new VertexTangentsHelper( mesh, 1, 0xff0000 );
scene.add( helper );
Constructor
| Signature |
|---|
| `new VertexTangentsHelper( object : Object3D, size : number, color : number |
Properties
| Property | Description |
|---|---|
.matrixAutoUpdate : boolean | Overwritten and set to false since the object's world transformation is encoded in the helper's geometry data. |
.object : Object3D | The object for which to visualize vertex tangents. |
.size : number | The helper's size. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |
.update() | Updates the vertex normals preview based on the object's world transform. |