I am trying to draw a a BitmapText to a Canvas texture but I couldn’t find a way to do that.
Is it possible?
const texture = scnFrame.textures.createCanvas("texture-key", 600, 600);
const context = texture.getSourceImage().getContext("2d");
// I can successfully draw an image
context.drawImage(scnFrame.textures.get("image-key").getSourceImage(), 0, 0);
// But how can I draw a BitmapText?