So my plan is to combine 4 lightmaps into a single image and switch various layers on/off as needed.
-R = base lightmap
-G = additional lighting information
-B = additional lighting information
-A= additional lighting information
I was wondering how this would be accomplished.
Thanks for your tips/ideas.
That sounds reasonable. I would suggest just writing a surface shader and using the Emission output to write whatever contribution you want from light maps.
How would I achieve a “darken only” effect when combining? The lighting information is essentially shadow information.
Okay, my main issue is switching between the image layers in the shader from code passed into the shader.
I appreciate any help on this.