Sol Trader: on lighting
February 14, 2012
A quick update on the lighting code I’ve been working on. Now that I have normal maps and per-pixel bump mapping working, I can turn these:
Into this:
Check out how the ship appears lit from each side. It looks even better as you see it moving. Hey presto: a realistic 3D effect with only two triangles rendered.
All I’m using is this simple GLSL fragment shader:
GLSL is great.
Share on BlueSky to comment.