Question

I am trying to add multiple effects to sprite to learn how to do pixel and vertex shaders for 2D games in XNA. Unfortunately, many of the tutorials or example code go over my head, as I am new to shaders (or more correctly the Effect class). The effect I am looking for is like this. Is this even possible to do with Effects or am I missing something?

Was it helpful?

Solution

I totally agree with Lucius. Shaders are awesome but it is not a best fit for everything. Here I found out a tutorial to create a effect only with 2D drawings. Many of the old 2D games generate effects like this only. As, at that moment graphics card was not that normal like now days are.

This kinda effect can be achieved by running multiple image, where one image is proper image while other is black and white of the image with shadow details. This will add sharpness to image which is needed for images.

And if you want particle based effect than also this tricks works to have two images instead of one for single particles and then give a effect / movement to that bundle of particles.

Have a look at tutorial. And let me know if more explanation is needed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top