|
@@ -52,7 +52,7 @@
|
|
|
const h = 512; // frustum height
|
|
|
const aspect = window.innerWidth / window.innerHeight;
|
|
|
camera = new THREE.OrthographicCamera( - h * aspect / 2, h * aspect / 2, h / 2, - h / 2, 1, 1000 );
|
|
|
- camera.position.set( 0, 0, 128 );
|
|
|
+ camera.position.set( - 64, - 64, 128 );
|
|
|
camera.up.set( 0, 0, 1 ); // In our data, z is up
|
|
|
|
|
|
// Create controls
|
|
@@ -61,6 +61,7 @@
|
|
|
controls.target.set( 64, 64, 128 );
|
|
|
controls.minZoom = 0.5;
|
|
|
controls.maxZoom = 4;
|
|
|
+ controls.enablePan = false;
|
|
|
controls.update();
|
|
|
|
|
|
// scene.add( new AxesHelper( 128 ) );
|