|
@@ -76,7 +76,7 @@ const cameraProps = [
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+const hoveredColor = Common.getHSV(Potree.config.mainColor, {add:{v : -20 }})
|
|
|
|
|
|
|
|
class PanoEditor extends THREE.EventDispatcher{
|
|
class PanoEditor extends THREE.EventDispatcher{
|
|
|
|
|
|
|
@@ -129,12 +129,12 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
depthTest:false
|
|
depthTest:false
|
|
|
})
|
|
})
|
|
|
lineMats.hovered = LineDraw.createFatLineMat({
|
|
lineMats.hovered = LineDraw.createFatLineMat({
|
|
|
- color: '#00c8af',
|
|
|
|
|
|
|
+ color: Potree.config.mainColor,
|
|
|
lineWidth: 2,
|
|
lineWidth: 2,
|
|
|
depthTest:false
|
|
depthTest:false
|
|
|
})
|
|
})
|
|
|
lineMats.selected = LineDraw.createFatLineMat({
|
|
lineMats.selected = LineDraw.createFatLineMat({
|
|
|
- color: '#00c8af',
|
|
|
|
|
|
|
+ color: Potree.config.mainColor,
|
|
|
lineWidth: 3,
|
|
lineWidth: 3,
|
|
|
depthTest:false
|
|
depthTest:false
|
|
|
})
|
|
})
|
|
@@ -1114,7 +1114,7 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
color: 0xffffff,
|
|
color: 0xffffff,
|
|
|
transparent: true,
|
|
transparent: true,
|
|
|
useDepth:true,
|
|
useDepth:true,
|
|
|
- backColor: 0x33ffdd,
|
|
|
|
|
|
|
+ backColor: Common.getHSV(Potree.config.mainColor, {add:{s:-50, v:-10 }}),
|
|
|
occlusionDistance: 10,//变为backColor距离
|
|
occlusionDistance: 10,//变为backColor距离
|
|
|
clipDistance : 5,//消失距离
|
|
clipDistance : 5,//消失距离
|
|
|
maxClipFactor: 0.8,
|
|
maxClipFactor: 0.8,
|
|
@@ -1133,13 +1133,13 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
circleMats.selected_rtk_off.map = texLoader.load(Potree.resourcePath+'/textures/rtk-f-s.png' )
|
|
circleMats.selected_rtk_off.map = texLoader.load(Potree.resourcePath+'/textures/rtk-f-s.png' )
|
|
|
|
|
|
|
|
circleMats.hovered_normal = circleMats.default_normal.clone();
|
|
circleMats.hovered_normal = circleMats.default_normal.clone();
|
|
|
- circleMats.hovered_normal.color.set(0x00ff00)
|
|
|
|
|
|
|
+ circleMats.hovered_normal.color.copy(hoveredColor)
|
|
|
circleMats.hovered_normal.useDepth = false
|
|
circleMats.hovered_normal.useDepth = false
|
|
|
circleMats.hovered_rtk_on = circleMats.default_rtk_on.clone();
|
|
circleMats.hovered_rtk_on = circleMats.default_rtk_on.clone();
|
|
|
- circleMats.hovered_rtk_on.color.set(0x00ff00)
|
|
|
|
|
|
|
+ circleMats.hovered_rtk_on.color.set(hoveredColor)
|
|
|
circleMats.hovered_rtk_on.useDepth = false
|
|
circleMats.hovered_rtk_on.useDepth = false
|
|
|
circleMats.hovered_rtk_off = circleMats.default_rtk_off.clone();
|
|
circleMats.hovered_rtk_off = circleMats.default_rtk_off.clone();
|
|
|
- circleMats.hovered_rtk_off.color.set(0x00ff00)
|
|
|
|
|
|
|
+ circleMats.hovered_rtk_off.color.set(hoveredColor)
|
|
|
circleMats.hovered_rtk_off.useDepth = false
|
|
circleMats.hovered_rtk_off.useDepth = false
|
|
|
|
|
|
|
|
|
|
|