How to keep the original materials of the GLB model while loading an image with transparent background as the dynamic texture?

Hi, every one, I’m new to Babylon.js, I have a question related to dynamic textures.

This is the original material of the external GLB model loaded from GitHub.

I try to create a dynamic texture, load an image with transparent background, but the original material has changed to black.

I try to add hasAlha to the dynamic texture at the 47th line of code, but this is not what I want.

What I want to do is to keep the original material of GLB model, and the dynamic texture overlap on it.

Thank you in advance for any solutions.

Hi @changhejeong , welcome to the forum!

It’s possible to change the diffuse by loading a new texture. But if you want to mix current material with another texture (dynamic or not), you’ll have to create a new material. With shaders or nme:

Something like this maybe ?

2 Likes