Why does the background turn black when applying an svg image?

Why does the background turn black when applying an svg image?

Set the texture’s hasAlpha property to true:

svg example | Babylon.js Playground (babylonjs.com)

1 Like

thanks!
But I wanted to overlay the texture on the background color.
If I use a png image it works, but with the svg the background disappears

Want to share a playground for that? So I can understand what you are trying to achieve?

Hello
I was trying to texture a mesh that already had some background color.
If I overlay a png texture, then everything worked fine.
Then I decided to overlay svg and it started working weird.
I decided that instead of overlaying color on the mesh, I needed to completely paint both the texture and its background.

1 Like

Hello @kostiunindima1 just checking in, was your question answered?