Projection mapping

Hi everyone,

I have one more use case that I am hoping you could help with.

I’d like to be able to switch from one projection map to another with a fade, very similar to what @Evgeni_Popov did from the cubemap to the light projection mapping but with 2 lights projection mapping.

The idea would be that spotlight would project its texture and slowly fade to spotlight2, ideally without the 2 lights adding to each other which would create a much brighter look mid way through the fade.

I tried to mix together the shader @Evgeni_Popov did for the cubemap fade and the non fade one but didn’t get far since I don’t know how to point to specific lights in the lightfragment.
https://playground.babylonjs.com/#YIU90M#344

When working with the lightfragment, are we working with the full scene lighting? is there a way to “isolate” in a variable specific lights from specific spotlights in order to create the fade?

I also looked this up (Switch Material with Fade Effect) which fades 2 textures but I believe with the projection mapping the lightfragment are not textures but lighting?

Thanks!

Chris