Browse Source

center control rotation around center of volume

Almar Klein 6 years ago
parent
commit
4277300691
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/webgl_materials_texture3d_volume1.html

+ 1 - 0
examples/webgl_materials_texture3d_volume1.html

@@ -203,6 +203,7 @@
 			container.appendChild( renderer.domElement );
 
 			controls = new THREE.OrthographicTrackballControls( camera, renderer.domElement );
+			controls.target = new THREE.Vector3(64, 64, 128);
 			controls.rotateSpeed = 5.0;
 			controls.zoomSpeed = 5;
 			controls.panSpeed = 2;