|
Hi, 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 :( Shader "--BULENT--/Combiner" {
}
(comments are locked)
|
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: Thanks for your help my friend. I'll read well your answer. Salute.
Oct 03 '10 at 09:49 AM
bulentgercek
(comments are locked)
|
