Thank you all for your kind words
@baxslash
It has become part of a bigger project(Counterstrice 2D like Zombieshooter) and the code is messi right now but when I refined it, im sure I post it sometime.
Actually i want to finish something with it, before i give the code away, you know
@Van B
I have several light codes, some of them use memblocks some of them use plugins from dbpro, but the fastest is the draw to image methot in AGKv2.
I wish someone shines in and shows me his lightshadow made by only a Shader.
@fog
One way could be to draw the "wall" objects over the light.
The other way i wish to do, is to make a shader that blurs the light more in the distance.
The problem is, that it is one huge render image right now, wich is layered and blended together for the other lights, and you don't have the objects in the image wich I pass to the shader.
So the shader don't know when to blur or not.
By the way you said objects ..that remembers me of the Shadow code for objects where you define the corners so you can have polygon "objects".
It sorts the corners by angle and takes the min and max corner for the shadow..
maybe I dig that out too.