材质颜色

This commit is contained in:
zh
2025-08-23 03:31:02 +08:00
parent 22e4652528
commit 6c84baa3c2
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.font = 200 + 'px serif'
ctx.fillStyle = 'rgba(255, 255, 255, 0)' ctx.fillStyle = 'rgba(255, 255, 255, 0)'
ctx.fillRect(0, 0, maxWidth + 30, 210) ctx.fillRect(0, 0, maxWidth + 30, 210)
ctx.fillStyle = this.options.color ctx.fillStyle = 'rgba(255, 255, 255, 1)'
ctx.font = '200px serif' ctx.font = '200px serif'
ctx.fillText(textArray[i], 0, 210 * (i + 1)) ctx.fillText(textArray[i], 0, 210 * (i + 1))
} }

View File

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

View File

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