Every cloud needs a silver lining: edge glow mask
I am trying to create a sky system using polygonal clouds rather than volumetrics. It looks fairly good throughout the daytime.
But come 6PM clouds look opaque when we look at them through the sun:
So I hooked up a camera vector and vertex normal dot product, and got silver linings-- but of course, clouds had silver linings everywhere, even when you're looking away from the sun.
This is the desired effect (a composite in photoshop)
How do I make it so that we get this silver lining only over the sun, fading out as the clouds recede away? Maybe a mask?
Thanks in advance for any help on this!
yeah you could scale the intensity with a sphere mask. the 'a' input would be world position and 'b' would be the position of the sun. hardness would be 0 and radius some fairly high value in the thousands i'd imagine.
you could also try running the dot product with the normal and atmospheric light vector for a of bit different effect.
Follow this question
Once you sign in you will be able to subscribe for any updates here