A really easy way to do real-time shadows that is applicable for actual game use

Blitz3D Forums/Blitz3D Programming/A really easy way to do real-time shadows that is applicable for actual game use

I now have basic shadow falloff working in my shadow system. Unfortunately, Blitz lights have a HUGE falloff! Like, if you have a light with a radius of 20, the falloff goes out to 5100 units!

I think.

According to the equations Mark gave me, that's what happens.

So I implemented a little bit of a hack, where you can select the maximum brightness level for the shadow to fall off to. So you can specify 8, and it won't get any lighter than 256-8, where 256 is the point it fades out completely. So it'll just dissapear at that range.

But that's not really good enough for me. I'm not happy with the shadows just dissapearing, and even with a radius of 8, the shadows still go way the hell out there.

So maybe I need to implement a secondary max radius you can specify which somehow makes this thing fade faster. I'm not sure yet.

The fades look nice as they are, but you just can't have shadows being drawn over 80 meters from a light source. It would not be good for the framerate.