Browse Source

Update cameras.html (#27640)

SphereBufferGeometry is wrong,
SphereGeometry should be used
zkiki 1 year ago
parent
commit
635a04ab70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      manual/zh/cameras.html

+ 2 - 2
manual/zh/cameras.html

@@ -251,7 +251,7 @@ const minMaxGUIHelper = new MinMaxGUIHelper(camera, 'near', 'far', 0.1);
   const sphereRadius = 3;
   const sphereWidthDivisions = 32;
   const sphereHeightDivisions = 16;
-  const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
+  const sphereGeo = new THREE.SphereGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
   const numSpheres = 20;
   for (let i = 0; i < numSpheres; ++i) {
     const sphereMat = new THREE.MeshPhongMaterial();
@@ -473,4 +473,4 @@ const planes = textures.map((texture) => {
 
 
 
-</body></html>
+</body></html>