Merge two images in one Texture

Hi everybody,

I am looking for a way to merge 2 images into a single Texture.
The use case is that I have a glb model of a short with its own material which includes details like folds. I want to change the material on one part of the model in order to have satin instead of leather. for instance But I don’t want to lose the details of the folds while changing the material so I would need a way to merge the two textures together (original model textures with leather textures).

I search for what I could do using the Texture or DynamicTexture class but have no clue so far.
Thanks a lot in advance for your help and ideas to solve this :wink:

Maybe using a detail map would help?

2 Likes

I think this can be achieved through the material textures (AO, bump/normal, opacity, light/shadow map, metallicRoughness in case of PBR). Have the diffuse and emissive use the satin or leather texture and the others apply the folds and bumps.

@Evgeni_Popov This is exactly what I was looking for. We still have to make some tests but it sounds promising! Thanks !!