Visualizes an object's vertex normals.
Requires that normals have been specified in a [page:BufferAttribute custom attribute] or
have been calculated using [page:BufferGeometry.computeVertexNormals computeVertexNormals].
const geometry = new THREE.BoxGeometry( 10, 10, 10, 2, 2, 2 );
const material = new THREE.MeshStandardMaterial();
const mesh = new THREE.Mesh( geometry, material );
const helper = new VertexNormalsHelper( mesh, 1, 0xff0000 );
scene.add( mesh );
scene.add( helper );
[example:webgl_helpers WebGL / helpers]
[page:Object3D object] -- object for which to render vertex normals.
[page:Number size] -- (optional) length of the arrows. Default is *1*.
[page:Hex color] -- (optional) hex color of the arrows. Default is *0xff0000*.
See the base [page:LineSegments] class for common properties.
See [page:Object3D.matrixAutoUpdate]. Set to `false` here as the helper is using the object's [page:Object3D.matrixWorld matrixWorld].
The object for which the vertex normals are being visualized.
Length of the arrows. Default is *1*.
See the base [page:LineSegments] class for common methods.
Updates the vertex tangents preview based on the object's world transform.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/helpers/VertexNormalsHelper.js examples/jsm/helpers/VertexNormalsHelper.js]