Search code examples
c#filterxnatexture2dglow

Flash-like glow filter on 2d Texture in XNA


I'm wondering how I would be able to apply a "glow filter" similar to ones I've seen done in Flash, using the XNA framework.

Here is an example of what I am trying to achieve:

enter image description here

Which would have been applied using the following code in ActionScript 3:

var glow:GlowFilter = new GlowFilter(0xFFCC00, 1.2, 12, 12, 1, 3);
target.filters = [glow];

Is there something similar in XNA?

Thanks in advance.


Solution

  • You could use a Shader.

    Here is an old example