Vertex/image shading (in 2d, based on faked 3d..)

BlitzMax Forums/BlitzMax Programming/Vertex/image shading (in 2d, based on faked 3d..)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This screenshot is from my tilemap engine, and, as you can see, has no sort of shading to give the viewer any sort of depth perception (except for the lines, obviously).


This is what I would like to achieve (this is from a game, it uses the same basic 2d rendering technique I use).


I render tiles by the vertex, so I think I could actually determine whether a vertex is on a down slope away from or toward the global lighting (South-West) then raise/lower the color values.

Any ideas?