Compare commits

...

2 Commits

Author SHA1 Message Date
zh
6c84baa3c2 材质颜色 2025-08-23 03:31:02 +08:00
zh
22e4652528 贴地svg编辑 2025-08-23 03:30:54 +08:00
4 changed files with 8 additions and 8 deletions

View File

@ -2486,8 +2486,8 @@ class GroundSvg extends Base {
w = (Math.cos(radiansW) * distance) * 2
h = (Math.cos(radiansH) * distance) * 2
// scaleY值
this.scale.x = w / 3.5
this.scale.y = h / 3.5
this.scale.x = Math.abs(w) / 3.5
this.scale.y = Math.abs(h) / 3.5
break
case 'svg-control-points_2':
case 'svg-control-points_8':
@ -2578,8 +2578,8 @@ class GroundSvg extends Base {
w = (Math.cos(radiansW) * distance) * 2
h = (Math.cos(radiansH) * distance) * 2
// scaleY值
this.scale.x = w / 3.5
this.scale.y = h / 3.5
this.scale.x = Math.abs(w) / 3.5
this.scale.y = Math.abs(h) / 3.5
break
case 'svg-control-points_4':
bearingW = (((turf.rhumbBearing(pointC, turf.point(controlPoints[4])) + 360) - this.angle) % 360)

View File

@ -649,7 +649,7 @@ class GroundText extends Base {
ctx.font = 200 + 'px serif'
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
ctx.fillRect(0, 0, maxWidth + 30, 210)
ctx.fillStyle = this.options.color
ctx.fillStyle = 'rgba(255, 255, 255, 1)'
ctx.font = '200px serif'
ctx.fillText(textArray[i], 0, 210 * (i + 1))
}

View File

@ -508,7 +508,7 @@ class StandText extends Base {
ctx.font = 200 + "px serif";
ctx.fillStyle = 'rgba(255, 255, 255, 0)'
ctx.fillRect(0, 0, maxWidth + 30, 210)
ctx.fillStyle = this.options.color;
ctx.fillStyle = 'rgba(255, 255, 255, 1)';
ctx.font = "200px serif";
ctx.fillText(textArray[i], 0, 210 * (i+1));
}

View File

@ -238,8 +238,8 @@ function StreamWall2() {
else {
material.alpha = 1.0;
}
material.diffuse = color.rgb*0.0;
material.emission = color.rgb * 1.0;
material.diffuse = colorImage.rgb * color.rgb*0.0;
material.emission = colorImage.rgb * color.rgb * 1.0;
return material;
}`,
components: {