How can I change the color of the text?
In the previous version of P.C. I can set the material.blendType = pc.BLEND_ADDITIVE, and change the color of the text normally. but in current version, just only can set the material.blendType =pc.BLEND_NORMAL, otherwise the text will not show.
this.entity.render.material = this.entity.render.material.clone();
var material = this.entity.render.material;
material.emissiveMap = this.texture;
material.opacityMap = this.texture;
material.blendType = pc.BLEND_NORMAL;
// material.blendType = pc.BLEND_ADDITIVE;
material.update();
Please find the project here:
https://playcanvas.com/project/1286440/overview/text