Good way to make an entity a light source?

Blitz3D Forums/Blitz3D Beginners Area/Good way to make an entity a light source?

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.

Vertex lighting?

Loop over all the vertices in your room and calculate the distance between the vertex and any lights. Colour the vertex accordingly.

You only need to do this once, during initialization - assuming your lights won't be moving around.