Originally Posted By: Kartoffel
It's basically adding
Code:
Color *= dot(vViewPixelDir, vNormal);

to a shader.

A tiny bit more if you want to adjust the intensity and prevent issues with negative results.
But that dot-product is the idea behind the whole thing.
I'll be happy to give it a try. But how and where in a shader do I declare 'vViewPixelDir' and 'vNormal'?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung