I am currently studying a course on three.js and encountered an issue in Chrome version 79 while progressing through the material:
"THREE.FaceNormalsHelper is not a constructor".
The line causing trouble is as follows:
normals = new THREE.FaceNormalsHelper(sphere, 5, 0x00ff00, 1);
According to the official documentation for three.js, the example code should look like this:
helper = new THREE.FaceNormalsHelper( box, 2, 0x00ff00, 1 );
The sphere in my code is generated using SphereGeometry
, which is a type of Geometry
, so that should not be causing the issue. It seems like I might be overlooking something obvious. Can you please help me identify what I might be missing or not taking into account?