From 5326625bf3ba0f91fcf8c883091921027d0da6d9 Mon Sep 17 00:00:00 2001 From: Maarten van Meersbergen Date: Wed, 13 Aug 2014 15:24:12 +0200 Subject: [PATCH] Changed Float32Attribute to BufferAttribute Float32Attribute is deprecated --- src/PointCloudOctreeGeometry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PointCloudOctreeGeometry.js b/src/PointCloudOctreeGeometry.js index 1222179a..2159254d 100644 --- a/src/PointCloudOctreeGeometry.js +++ b/src/PointCloudOctreeGeometry.js @@ -82,8 +82,8 @@ Potree.PointCloudOctreeGeometryNode.prototype.bufferLoaded = function(buffer){ colors[3*i+2] = color.b / 255; } - geometry.addAttribute('position', new THREE.Float32Attribute(positions, 3)); - geometry.addAttribute('color', new THREE.Float32Attribute(colors, 3)); + geometry.addAttribute('position', new THREE.BufferAttribute(positions, 3)); + geometry.addAttribute('color', new THREE.BufferAttribute(colors, 3)); geometry.boundingBox = this.boundingBox; this.geometry = geometry; this.loaded = true; @@ -96,4 +96,4 @@ Potree.PointCloudOctreeGeometryNode.prototype.dispose = function(){ this.loaded = false; //console.log("dispose: " + this.name); -} \ No newline at end of file +}