fix some classification handling
This commit is contained in:
parent
e8eee563e1
commit
33dc7ae696
@ -1,5 +1,11 @@
|
||||
|
||||
|
||||
Potree.ProfileRequest = function(){
|
||||
this.queue = [];
|
||||
|
||||
|
||||
};
|
||||
|
||||
Potree.PointCloudOctreeNode = function(){
|
||||
this.children = {};
|
||||
this.sceneNode = null;
|
||||
@ -771,6 +777,7 @@ Potree.PointCloudOctree.prototype.pick = function(renderer, camera, ray, params)
|
||||
this.pickMaterial.interpolate = this.material.interpolate;
|
||||
this.pickMaterial.minSize = this.material.minSize;
|
||||
this.pickMaterial.maxSize = this.material.maxSize;
|
||||
this.pickMaterial.classification = this.material.classification;
|
||||
|
||||
this.updateMaterial(this.pickMaterial, nodes, camera, renderer);
|
||||
|
||||
|
||||
@ -374,11 +374,11 @@ Object.defineProperty(Potree.PointCloudMaterial.prototype, "classification", {
|
||||
return this._classification;
|
||||
},
|
||||
set: function(value){
|
||||
if(this._classification !== value){
|
||||
//if(this._classification !== value){
|
||||
this._classification = value;
|
||||
this.classificationTexture = Potree.PointCloudMaterial.generateClassificationTexture(this._classification);
|
||||
this.uniforms.classificationLUT.value = this.classificationTexture;
|
||||
}
|
||||
//}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user