Dynamic texture + pre rendered illumination texture on different channel

Hi,

is it possible to composite an animated dynamic texture that is using UV on channel 1 with a static lightning texture exported from 3d max on channel 2?
Should I use a shader to achieve that?
Could somebody help me? I have no idea on how to write a custom shader.
Thanks a lot

Using the uv2 attribute for the ligthmap does work, as you can see here:

https://playground.babylonjs.com/#5FSMD1

So, if you export your file from 3dsMax with the lightmap in the channel 2, you can use the diffuseTexture (or albedoTexture if using PBR, for eg if you export to gltf/glb) for your dynamic texture.

1 Like

Thanks so much, I didn’t know there was the uv2 attribute. You are my here as usual :slight_smile: