North facing snow

Started by gpstevens61, January 19, 2013, 08:48:05 AM

Previous topic - Next topic

gpstevens61

Hi

I'm trying to create a shader that will make the North facing sides of hill have a higher density of snow than the Southern facing sides.  My best idea is to have constant vector which is North and then try and get the vector of the Normal and subtract this from the constant.  My thought is that if I then take the Cosine of the diff when the Normal faces North it will be a small diff with a Cosine of 1 which I can then use in a distribution shader.  But I can't get the functions to behave this way.  Does anyone know how this could be done or do they have a simpler solution.

Many thanks  Greg

Tangled-Universe


Dune

Interesting, never found that post. Way before my time. I have found a way using the get normal function a while back, and rotating that (X or Z), feeding it into a distribution shader setting slope restraints, which also works.

gpstevens61

Thanks for the advice, I've cracked it.