|
@@ -171,7 +171,7 @@
|
|
// Screen rectangle bounds from light sphere's world AABB
|
|
// Screen rectangle bounds from light sphere's world AABB
|
|
var lightBounds = function () {
|
|
var lightBounds = function () {
|
|
|
|
|
|
- v = new THREE.Vector3();
|
|
|
|
|
|
+ var v = new THREE.Vector3();
|
|
return function ( camera, pos, r ) {
|
|
return function ( camera, pos, r ) {
|
|
|
|
|
|
var minX = State.width, maxX = 0, minY = State.height, maxY = 0, hw = State.width / 2, hh = State.height / 2;
|
|
var minX = State.width, maxX = 0, minY = State.height, maxY = 0, hw = State.width / 2, hh = State.height / 2;
|
|
@@ -224,7 +224,7 @@
|
|
var stats = new Stats();
|
|
var stats = new Stats();
|
|
container.appendChild( stats.dom );
|
|
container.appendChild( stats.dom );
|
|
|
|
|
|
- controls = new THREE.OrbitControls( camera, renderer.domElement );
|
|
|
|
|
|
+ var controls = new THREE.OrbitControls( camera, renderer.domElement );
|
|
controls.minDistance = 120;
|
|
controls.minDistance = 120;
|
|
controls.maxDistance = 320;
|
|
controls.maxDistance = 320;
|
|
|
|
|