Pixel Shader - apply a mask (XNA)
- by Michal Bozydar Pawlowski
I'd like to apply a simple few masks to few images.
The first mask I'd like to implement is mask like:
XXXOOO
I mean, that on the right everything is masked (to black), and on the left everything is stayed without changes.
The second mask I'd like to implement is glow mask. I mean something like this:
O
O***O
O**X**O
O***O
O
…