优化贴地文字、立体文字颜色

This commit is contained in:
zh
2025-08-23 02:36:17 +08:00
parent 7feab0786a
commit f8443b7f62
3 changed files with 4 additions and 4 deletions

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: {