Shading a charactor based on a lightmap?

Blitz3D Forums/Blitz3D Programming/Shading a charactor based on a lightmap?

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.

if you know what vertex the character is near, you could use VertexU and VertexV to get the U/V coords, then get the pixel luminance value at that location (or perhaps faster would be to preload the luminance values of the texture into a bank or array).