2
0
Эх сурвалжийг харах

Update cameras.html (#27640)

SphereBufferGeometry is wrong,
SphereGeometry should be used
zkiki 1 жил өмнө
parent
commit
635a04ab70

+ 2 - 2
manual/zh/cameras.html

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