How to blend two textures of lightmapTexture

I want to blend the lightmapTexture of a StandardMaterial between two textures and obtain the material variation process as two textures are blended together in different blend parameters.

I made a NodeMaterial like this: https://nme.babylonjs.com/#LE5YNA

It can only change the diffuseTexture between two textures. If I have a StandardMaterial which contains diffuseTexure, bumpTexture, lightmapTexture, reflectionTexture. I want to keep the diffuseTexure, bumpTexture, reflectionTexture, and blend the lightmapTexture. How can I do that?

And if it is a PBRMaterial, can I do the same effect?

You will probably want to recreate the standard material in the NME. Fortunately, we already did it:

It’s a bit complicated because it is a full implementation of the standard material, but you should be able to tweak it in any way you want.

It’s easier for the PBR material, because the PBRMetallicRoughness block is doing most of the work. As for the standard material, we have a recreation of the full PBR material in a node material:

1 Like

:heart_eyes: Thank you so much!