Hi guys,
I'm wondering if it is possible for a shader to know what vertex or polygons are being lit or in shadow somehow.
I'm wanting to take that data and make a sort of "If statement" or mask which will be used to change between 2 textures depending on if its receiving direct light or in shadow.
Replies
Sounds like you want to lerp between two textures based on the dot product of the light and camera vectors.
Looking for a way to make it so that its a clamped effect so that there is no in between blending,
Also, mind that this will still return lit even if there's a cast shadow over the surface, since it only checks for light direction relationship.
As for clamping the results to on/off, you could use an If node.
eg:
Also how are you setting the connecting lines to be strait ?!