瀏覽代碼

Examples: Clean up.

Mr.doob 5 年之前
父節點
當前提交
dad38c08d0
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      examples/webxr_vr_paint.html
  2. 2 2
      examples/webxr_vr_sculpt.html

+ 1 - 1
examples/webxr_vr_paint.html

@@ -71,7 +71,7 @@
 				scene.add( floor );
 
 				var grid = new THREE.GridHelper( 10, 20, 0x111111, 0x111111 );
-				grid.material.depthTest = false; // avoid z-fighting
+				// grid.material.depthTest = false; // avoid z-fighting
 				scene.add( grid );
 
 				scene.add( new THREE.HemisphereLight( 0x888877, 0x777788 ) );

+ 2 - 2
examples/webxr_vr_sculpt.html

@@ -43,7 +43,7 @@
 				scene = new THREE.Scene();
 				scene.background = new THREE.Color( 0x222222 );
 
-				camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.02, 50 );
+				camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 0.01, 50 );
 				camera.position.set( 0, 1.6, 3 );
 
 				controls = new OrbitControls( camera, container );
@@ -72,7 +72,7 @@
 				scene.add( floor );
 
 				var grid = new THREE.GridHelper( 10, 20, 0x111111, 0x111111 );
-				grid.material.depthTest = false; // avoid z-fighting
+				// grid.material.depthTest = false; // avoid z-fighting
 				scene.add( grid );
 
 				scene.add( new THREE.HemisphereLight( 0x888877, 0x777788 ) );