How can one achieve a dynamic glow effect in Java Slick2d? I want an image to be surrounded by a glow when I move my mouse over it for example.
Is it possible to make this programmatically?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
I would suggest just making the image with a glowing effect, but if you must have it done in game then you would:
1) Render your scene or "glow objects" to texture A
2) Bind texture A, then using the horizontal shader, render a quad to texture B
3) Bind texture B, then using the vertical shader, render a quad to texture A
However This requires the following OpenGL extensions:
GL_ARB_shader_objects or GL20
GL_EXT_framebuffer_object or GL30
(You can find the full answer on the website below. The guy there explains it better than me)