Merge pull request #92 from potree/develop

fixed access to global var pointcloud from example
This commit is contained in:
Markus Schütz 2014-12-17 18:03:10 +01:00
commit 93d3e81c6d

View File

@ -111,7 +111,7 @@ Potree.PointCloudOctree.prototype.update = function(camera, renderer){
this.material.fov = camera.fov * (Math.PI / 180);
this.material.screenWidth = renderer.domElement.clientWidth;
this.material.screenHeight = renderer.domElement.clientHeight;
this.material.spacing = pointcloud.pcoGeometry.spacing;
this.material.spacing = this.pcoGeometry.spacing;
this.material.near = camera.near;
this.material.far = camera.far;