Looking for a bit of help with my material functionality.
What I’m trying to do is limit the vertical range of the sun light for this material only, by a given amount. Using the float3values debug node, I thought it was simple - see below:
This worked as expected; when the sun is high in the sky the blue channel is capped at whatever value i give it, 0.25 in this case. Below that it works as normal. Left/Right rotating untouched, as expected.
However, when tying it into the VertexNormalWS node it stops behaving as I expect. The sun height is still influencing the material - not getting capped:
Its acting like a multiplier of the vertical component, rather than a cap. So setting it to zero gives the vertical component zero influence:
My understanding of the maths is clearly the limiting factor here. I’d appreciate any help if you know of a way of capping a vector component.


