I'd like to request a effect shader that would create nice fadeout effect based on grayscale image the size of game's window (or whatever area would be affected).
It should have three inputs:
- Image, the image used as the base
- Fade color, the color it will be faded to, default is black
- Fade percentage (either as 0.0-1.0 or 0-100, doesn't really matter), which would tell the effect how much of the screen is to be cleared. 0=everything cleared to fade color.
As for how it should work, it would be based on a grayscale "mask" (image input). Pixels under whitest pixels would be cleared first, while pixels under blackest mask's pixels would be cleared last. If anyone had any experience with RPG Maker XP, that's how transitions work there.
Why I'm asking it if there is built-in transition system? Well, it's nice and all... until you want transition that isn't there. Effect like this would make it very easy to create your own transition, just make special image and then manipulate effect coefficient to get fade-in/out effect (either move from 0 to 100/0.0 to 1.0 or viceversa over time to fade).