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 just realized that turning the Blend Mode into Alpha Blend from blender fix this issue. I wonder what has changed in the material properties which makes this works?
Can I replicate the alpha blend by setting it from babylon js code?
Hi! Using the exact same solution on the PG, with my project tree-shaken from 7.49.0, the color does not reflect on the material. If I were to try with StandardMaterial, then background would not be transparent. It is working with 6.39.0.
Do I need to import something else? Or am I missing anything?
I would but I don’t know how to reproduce tree-shaking in the Playground. But figured out something else though, when I change the roughness to 1, and metallic to 0. I started to see some results. Also tried to reduce the roughness to 0 in the PG, but it still works there.
Wanted to point out I’m using the same light settings with the PG.
I think I am good to go from this point. Thank you anyways!