Преглед изворни кода

Editor: Adding camera to scene/outline.
Will be handy for modifying the near/far later.

Mr.doob пре 13 година
родитељ
комит
caab788df7
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      editor/js/ui/Viewport.js

+ 1 - 0
editor/js/ui/Viewport.js

@@ -44,6 +44,7 @@ var Viewport = function ( signals ) {
 	var camera = new THREE.PerspectiveCamera( 50, 1, 1, 5000 );
 	camera.position.set( 500, 250, 500 );
 	camera.lookAt( scene.position );
+	scene.add( camera );
 
 	var controls = new THREE.TrackballControls( camera, container.dom );
 	controls.rotateSpeed = 1.0;