creating lightsources

BlitzMax Forums/BlitzMax Programming/creating lightsources

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.

So to do this, in each of those quarter regions, you defined 4 quads where the center of those (where they all touch) is the light color and further towards the corners is darker? How do you handle the corners that are diagonal from the center and further away - do you have to diminish the intensity there based on how much further away it is, to get things spherical?

Also, how did you render the quads so that you would achieve the lighting effect shown? Some kind of blend mode or with alpha channels or something? To combine with the masked sprites - are they drawn after or before?