Removed directional lights

pull/78/head
Piero Toffanin 2017-01-19 15:45:22 -05:00
rodzic cccc1d1935
commit 17c3b937bb
1 zmienionych plików z 1 dodań i 10 usunięć

Wyświetl plik

@ -83,7 +83,6 @@ class ModelView extends React.Component {
var isFlipYZ = false;
var useDEMCollisions = false;
var minNodeSize = 100;
var directionalLight;
var showStats = false;
var showBoundingBox = false;
@ -477,12 +476,7 @@ class ModelView extends React.Component {
window.addEventListener( 'keydown', this.onKeyDown, false );
directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
directionalLight.position.set( 10, 10, 10 );
directionalLight.lookAt( new THREE.Vector3(0, 0, 0));
scenePointCloud.add( directionalLight );
var light = new THREE.AmbientLight( 0x555555 ); // soft white light
var light = new THREE.AmbientLight( 0xffffff ); // soft white light
scenePointCloud.add( light );
}
@ -619,9 +613,6 @@ class ModelView extends React.Component {
function update(){
Potree.pointLoadLimit = pointCountTarget * 2 * 1000 * 1000;
directionalLight.position.copy(camera.position);
directionalLight.lookAt(new THREE.Vector3().addVectors(camera.position, camera.getWorldDirection()));
if(pointcloud){
var bbWorld = Potree.utils.computeTransformedBoundingBox(pointcloud.boundingBox, pointcloud.matrixWorld);