> > This should fix games like Golly! Ghost! or others that need alpha passed through. > > > > Also added a parameter to adjust the strength of the shadow mask effect. > > Just tried invaders out with the artwork. There is a little bit of slowdown. Still > playable. I guest too much shrinking lines and patterns is causes the slowdown. > > Edit: OK the screen gotta be turn on it side to stop the slowdown. Run fine after > that.
Well, it fetches the same texture samples multiple times, and evaluates a gaussian kernel at the same point multiple times for every pixel. So I'm going to go ahead and blame slowness on that. It's not fullspeed on my Surface Pro 3 on battery.
With a little free time, I'll move some calculations to the vertex shader so they won't be done for every pixel, and try to minimize texture fetches. That will speed it up a lot. It just involves removing all of the sub-functions that get called, and so I need time to sit down and re-write the whole thing.