Hello, I am working on a 2D shader for a game. I am currently trying to use a BufferedImage which calculates the light value of each individual pixel and sets it’s corresponding pixel in a screen-sized image that is essentially a black rectangle with different parts at different opacities, corresponding to their ‘light level’. I feel like this approach is poor, and results in poor performance. Do you all have any experience working with 2D shaders in Slick? Is there some way I can use a shader with LWJGL instead? I’m planning on scrapping the current system, as it produces the desired effect, but at a ridiculous performance cost. What other methods are there for adding dynamic, 2D shadows to my Slick game?
Thanks.