When I put a ramp node into the shadow colour of a directional light, the result is a tiling ramp. Is there any way to clamp the range so the texture is always displayed 0-1 relative to the shadows with a directional light.
I assume you want to do this to get a cheap fake soft-shadow effect on your dmap shadows.
Unfortunately it has no way of knowing how long the shadow would be so this is alot harder than it would seem at first.
You could create four to six directional lights and offset them slightly from eachother, (less than a degree) to get a dmap based softshadow. It can be rather heavy though....if that's even what you want to do ^_^.
Replies
Unfortunately it has no way of knowing how long the shadow would be so this is alot harder than it would seem at first.
You could create four to six directional lights and offset them slightly from eachother, (less than a degree) to get a dmap based softshadow. It can be rather heavy though....if that's even what you want to do ^_^.
Add as a layer to the shader you want it to affect. The layer can either be a layer in a layered texture or layered shader.
This doesn't solve your request in the OP but can be used to solve faking SSS.