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.
Example:
No glow
Glow
Is it possible to make this programmatically?
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. Example:
Is it possible to make this programmatically? |
|||
|
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:
(You can find the full answer on the website below. The guy there explains it better than me) |
|||
|