So I want to drawText() on a pbr material. The way I do it right now is create Dynamic Texture, the do context.drawText() then I assign the dynamic texture to the PBR material’s Albedo Texture.
The problem is that, the background of the dynamic texture is Black.
I set the:
texture.hasAlpha = true; material.useAlphaFromAlbedoTexture = true; texture.drawText(text, left, top, drawFont, style.fontColor, "transparent", true, true);
But it seems that the dynamic texture does not use alpha. So I cannot set it to alpha = 0;
How can I make the background transparent and the text solid colored?