Use arrow keys to navigate slideshow, and press F11 for fullscreen
. |
|||||||
. | . | . | . | . | . | . | . |
0.5 + 0.5 * cos(x) in the range of -Pi to Pi
|
|
Abusing cosine some more
x = dh/dx / 127.0f + 0.5; y = dh/dy / 127.0f + 0.5; z = 1.0f;
red = normal.x * 255; green = normal.y * 255; blue = normal.z * 255;