|
@@ -615,13 +615,13 @@ export class Measure extends ctrlPolygon{
|
|
|
let color = new THREE.Color(Potree.config.measure.highlight.color)
|
|
|
//label.sprite.material.opacity = config.measure.highlight.opacity
|
|
|
|
|
|
- //label.backgroundColor = {r:255*color.r, g:255*color.g, b:255*color.b, a:config.measure.highlight.opacity},
|
|
|
- //label.backgroundColor.a = config.measure.highlight.opacity
|
|
|
+ //label.setBackgroundColor({r:255*color.r, g:255*color.g, b:255*color.b, a:config.measure.highlight.opacity})
|
|
|
+
|
|
|
label.sprite.material.useDepth = false;
|
|
|
//label.textColor = {r: this.color.r*255, g: this.color.g*255, b: this.color.b*255, a: 1}
|
|
|
}else{
|
|
|
- //label.backgroundColor = {r: this.color.r*255, g: this.color.g*255, b: this.color.b*255, a:config.measure.default.opacity}
|
|
|
- //label.backgroundColor.a = config.measure.default.opacity
|
|
|
+ //label.setBackgroundColor({r: this.color.r*255, g: this.color.g*255, b: this.color.b*255, a:config.measure.default.opacity})
|
|
|
+
|
|
|
label.sprite.material.useDepth = true
|
|
|
//label.sprite.material.opacity = 0.98
|
|
|
//label.textColor = {r: 255, g: 255, b: 255, a: 1}
|