Generates normals from vertices so you do not have to do it manually. If flip is true, the resulting normals will be inverted. generateNormals should be called after generating geometry and before committing the mesh using commit or commitToArrays.
Note:generateNormals only works if the primitive type to be set to constantMesh.PRIMITIVE_TRIANGLES.
Generates normals from vertices so you do not have to do it manually. If flip is true, the resulting normals will be inverted. generateNormals should be called after generating geometry and before committing the mesh using commit or commitToArrays. Note: generateNormals only works if the primitive type to be set to constant Mesh.PRIMITIVE_TRIANGLES.