소스 검색

Merge pull request #19663 from mrdoob/Mugen87-patch-1

XRControllerModelFactory: Use SphereBufferGeometry.
Mr.doob 5 년 전
부모
커밋
3bbd2f8b0c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/jsm/webxr/XRControllerModelFactory.js

+ 2 - 2
examples/jsm/webxr/XRControllerModelFactory.js

@@ -8,7 +8,7 @@ import {
 	MeshBasicMaterial,
 	Object3D,
 	Quaternion,
-	SphereGeometry,
+	SphereBufferGeometry,
 } from "../../../build/three.module.js";
 
 import { GLTFLoader } from '../loaders/GLTFLoader.js';
@@ -132,7 +132,7 @@ function findNodes( motionController, scene ) {
 			if ( component.touchPointNode ) {
 
 				// Attach a touch dot to the touchpad.
-				const sphereGeometry = new SphereGeometry( 0.001 );
+				const sphereGeometry = new SphereBufferGeometry( 0.001 );
 				const material = new MeshBasicMaterial( { color: 0x0000FF } );
 				const sphere = new Mesh( sphereGeometry, material );
 				component.touchPointNode.add( sphere );