Realtime vertex lighting?

Blitz3D Forums/Blitz3D Programming/Realtime vertex lighting?

Is it possible in blitz?

And if so could someone suggest some code reference.. either in blitz or other.

I contacted a maker of one of my favourite games atm and wanted to try implementing the same lighting.

Here is the response i got:

Lighting is done by controlling the RGB value for each polygon. You have to compare
each vertice of each poly to every light source and increase the RGB an amount
based on the distance from that light source.

You can also use the reverse of that system where you set all RGBs to max and then
darken them where there are no light sources.



I looked at the code archives and this seems exactly what robs maths lights example does..