This is one I just made up – not sure if anyone else is doing something similar, although i wouldn’t be surprised since its pretty simple. Basically I use a texture to warp the lighting value prior to sampling the light ramp. This causes a bit of disruption to the normally perfectly clean transitions between light values. Depending on the style you are going for this might be beneficial. Here is regular Ramped lighting and Warped Ramp Lighting
Depending on your texture you can achieve a variety of effects:
Liquification
Strokes
Patterning
Blotching

Maya CGFX File:

warpedlighting.cgfx
File Size: 11 kb
File Type: cgfx

Download File


Unity SHADER File:

warpedlighting.shader
File Size: 11 kb
File Type: shader

Download File


Leave a Reply

Your email address will not be published. Required fields are marked *