I am trying to do a shader to blend two lightmap with a slider. I will use that shader to make a daylight room and a night room. I'll change the slider's state and it will goes ok for me.
But i confused with my shader. I am trying to fix it but i cant. Got problem with my second lightmap. Slider working well but lightmap completely filling my first lightmap and diffuse. Can someone check my shader? What is wrong with it? I really need a hand to fix that :(
What your shader does:
What you want:
You only need one pass. You want something more like main * color + nightmap * Blend + lightmap * (1-Blend) if you want the lighting to truly be emissive.
First you would get the mapped lighting and then apply it to the main * color
Try something more like:
If you wanted something multiplicative, then you could do something like: