Skip to content

Commit 635a04a

Browse files
authored
Update cameras.html (#27640)
SphereBufferGeometry is wrong, SphereGeometry should be used
1 parent 6daf300 commit 635a04a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manual/zh/cameras.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ <h1>摄像机</h1>
251251
const sphereRadius = 3;
252252
const sphereWidthDivisions = 32;
253253
const sphereHeightDivisions = 16;
254-
const sphereGeo = new THREE.SphereBufferGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
254+
const sphereGeo = new THREE.SphereGeometry(sphereRadius, sphereWidthDivisions, sphereHeightDivisions);
255255
const numSpheres = 20;
256256
for (let i = 0; i &lt; numSpheres; ++i) {
257257
const sphereMat = new THREE.MeshPhongMaterial();
@@ -473,4 +473,4 @@ <h1>摄像机</h1>
473473

474474

475475

476-
</body></html>
476+
</body></html>

0 commit comments

Comments
 (0)