Skip to content
Snippets Groups Projects
Commit d7eeef69 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

max zoom limit

parent 0cebdfb4
Branches
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ THREE.OrbitControls = function ( object, domElement ) {
// Limits to how far you can dolly in and out
this.minDistance = 0;
this.maxDistance = Infinity;
this.maxDistance = 600;
// Set to true to disable this control
this.noRotate = false;
......
......@@ -5,7 +5,7 @@
define(['underscore', 'three'], function(_, THREE){
var camera = new THREE.PerspectiveCamera(60, window.innerWidth/window.innerHeight, 0.01, 5000);
var camera = new THREE.PerspectiveCamera(60, window.innerWidth/window.innerHeight, 0.01, 1000);
var scene = new THREE.Scene();
var renderer = new THREE.WebGLRenderer({antialias:true});//antialiasing is not supported in ff and on mac+chrome
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment