Made FirstPersonControls work. Fixed more examples to work with the new camera system.

This commit is contained in:
alteredq
2011-10-04 21:10:20 +02:00
parent 98629744d3
commit c07919529e
22 changed files with 789 additions and 625 deletions
+2 -2
View File
@@ -117,10 +117,10 @@
container = document.getElementById( 'container' );
cameraOrtho = new THREE.OrthoCamera( -halfWidth, halfWidth, halfHeight, -halfHeight, -10000, 10000 );
cameraOrtho = new THREE.OrthographicCamera( -halfWidth, halfWidth, halfHeight, -halfHeight, -10000, 10000 );
cameraOrtho.position.z = 100;
cameraPerspective = new THREE.Camera( 50, window.innerWidth / window.innerHeight, 1, 10000 );
cameraPerspective = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 1, 10000 );
cameraPerspective.position.z = 900;
//