Directional Lighting

BlitzMax Forums/BlitzMax Programming/Directional Lighting

well if you know the positions of the end points on the "wall" get the angles from the light to the ends and you can extrude the shadow out from that, (coneage will be sorted auto)

lil warning thou, it looks pretty cool but unless the shadows are pretty dark you may notice some overlap sometimes er, you could do some more math to makesure they fit snug thou.