Changed Float32Attribute to BufferAttribute
Float32Attribute is deprecated
This commit is contained in:
parent
9f143ec14b
commit
5326625bf3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user