Browse Source

fix show distant instances (#23861)

sunag 3 years ago
parent
commit
224e3a63f8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgpu_skinning_instancing.html

+ 2 - 2
examples/webgpu_skinning_instancing.html

@@ -51,7 +51,7 @@
 
 				}
 
-				camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 1, 1000 );
+				camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 1, 5000 );
 				camera.position.set( 100, 200, 300 );
 
 				scene = new THREE.Scene();
@@ -78,7 +78,7 @@
 					const action = mixer.clipAction( object.animations[ 0 ] );
 					action.play();
 
-					const instanceCount = 50;
+					const instanceCount = 30;
 					const dummy = new THREE.Object3D();
 
 					object.traverse( ( child ) => {