Shadows compute fully on the GPU's pixel-shaders.
Need GLSL 1.20 (OpenGL 2.1).
Used GLSL-shaders from: http://bitbucket.org/totorigolo/shadows
Catalin Zima's shadows: http://www.catalinzima.com/2010/07/my-t ... d-shadows/
Thanks to:
* Catalin Zima (http://www.catalinzima.com/about/)
* Thomas Lacroix (http://plus.google.com/b/10724855610396 ... 3962831257)
Sources: http://github.com/AntonioModer/LOVE2DCatalinZimaShadows
Bugs:
* see image №2. Bug on the right at the bottom. Light passes through two diagonal pixels.
Also, i found this 2d-shadows (pixel-accuracy or ray-traced):
- LOVE2D:
- viewtopic.php?f=5&t=77500
viewtopic.php?f=4&t=80420
https://www.love2d.org/forums/viewtopic ... er#p163757
viewtopic.php?f=5&t=81770
https://ostindiegames.wordpress.com/201 ... ow-system/
http://rabidlion.com/?p=10
GameMaker: http://www.gmlscripts.com/forums/viewtopic.php?id=1657
russian: http://quadengine.blogspot.com/2011/07/2.html - viewtopic.php?f=5&t=77500
Story.
I could not write the GLSL-code yourself (my code you find in sources).
Then i I found this video: https://www.youtube.com/watch?v=Liv7BcMYelE
And asked source code from author of video.
Thomas Lacroix (author) give me sources: https://bitbucket.org/totorigolo/shadows
I adapt his GLSL-shaders to LOVE2D, and this is worked.
Thank you Thomas Lacroix.