0
\$\begingroup\$

This question already has an answer here:

I am working on a live wallpaper with Libgdx . I am wondering if I can give neon glow to my textures , at runtime . Is this possible? If yes can anybody give me any pointers?

\$\endgroup\$

marked as duplicate by Josh Jul 14 '14 at 15:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ Hi, and welcome to the site. This site is for questions that are more like "well I tried this and got stuck here, how do I fix it?" -- your question will (sadly) probably be closed. \$\endgroup\$ – ashes999 Jul 14 '14 at 14:58
  • 1
    \$\begingroup\$ There's nothing particularly "libgdx-specific" about this question; glow effects can be implemented in basically the same way across many engines/platforms. Tweaking the result to be more like a neon sign versus a glowing fireball is primarily down to tweaking the art asset representing the glow's blur. \$\endgroup\$ – Josh Jul 14 '14 at 15:17
  • \$\begingroup\$ There's a lot of related questions here already, as well. \$\endgroup\$ – Josh Jul 14 '14 at 15:18
0
\$\begingroup\$

Theoretically, sure. Two approaches come to mind:

  1. Write a shader
  2. Fake it

For faking it, you could draw four copies of the sprite (offsetting horizontally and vertically by 1px above/below/right/left of the main image) and tinting that to your neon colour.

I haven't tried it, so your mileage may vary.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.