- Home /
Help with Shader that blends between two textures based on light
So I've tried to do some research into how to make a shader that would, rather then simply darken, replace the texture with another one.
I'm rubbish at shaders, so the question is, can I get the light value in the surface part of the shader so that I can check what level compared to a ramp texture and blend the texture appropriately?
Essentially I'd like it to kinda look like this:
So that dark textures are shown in the shadows/dark areas and the light ones in lit areas.
If anyone could either help me with this or if there is already a shader that does this (or if it's easy enough for you to throw together) it would be greatly appreciated.
Comment