fixed access to global var pointcloud from example

This commit is contained in:
mschuetz 2014-12-17 18:02:19 +01:00
parent 020a6ab668
commit ac130c8ef6

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;