This commit is contained in:
Robert Kolner committed 2014-05-28 21:26:25 +02:00
1 parent ad18d7bda1
commit 5cab376c94
2 files changed
+3 -3

No files matched your search

-1
View File
@@ -11,7 +11,6 @@
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="node_modules/three/three.js"></script>
<script src="index.js"></script>
<img id="svg" src="data/neuf04.svg">
<div class="map"></div>
</body>
</html>
+3 -2
View File
@@ -3,8 +3,9 @@ var scene = new THREE.Scene();
//var sceneWidth = 1000;
//var sceneHeight = 1000;
var sceneWidth = window.innerWidth;
var sceneHeight = window.innerHeight;
var smallestSize = Math.min(window.innerWidth, window.innerHeight);
var sceneWidth = smallestSize;
var sceneHeight = smallestSize;
var camera = new THREE.PerspectiveCamera( 75, sceneHeight / sceneWidth, 0.1, 2500 );