How to achieve a Gaussian Blur effect for shadows in LWJGL/Slick2D?
Posted
by
user46883
on Game Development
See other posts from Game Development
or by user46883
Published on 2014-06-07T16:38:45Z
Indexed on
2014/06/07
21:38 UTC
Read the original article
Hit count: 447
I am currently trying to implement shadows into my game, and after a lot of searching in the interwebs I came to the conclusion that drawing hard edged shadows to a low resolution pass combined with a Gaussian blur effect would fit best and make a good compromise between performance and looks - even though theyre not 100% physically accurate.
Now my problem is, that I dont really know how to implement the Gaussian blur part. Its not difficult to draw shadows to a low resolutions buffer image and then stretch it which makes it more smooth, but I need to add the Gaussian blur effect.
I have searched a lot on that and found some approachs for GLSL, some even here, but none of them really helped it.
My game is written in Java using Slick2D/LWJGL and I would appreciate any help or approaches for an algorithm or maybe even an existing library to achieve that effect.
Thanks for any help in advance.
© Game Development or respective owner