Today made an initial generic filter Actually it is implemented as post processor , but I planned to made it as helper class other posts can use to make intermediate textures.
It works at original half and quarter resolution in box(2 pass), hexagon(3 pass) and octagonal pattern(4 pass).
Actually permutations supports 3, 5 and 7 taps in a linear pattern.
Actual filters are box blur(even if esagonal and octagonal approximate gaussian blur), min and max.
It is implemented on both pc and mobile.
Next step I want to try downsampler and other non separable filters.
Downsampler to reduce flickering of hi frequency details when working at quarter resolution.
Half resolution doesn't really need it in my tests .
Built in glow make a simple pass for downscaling that effectively stop flickering in quarter res.
On the other hand my actual filter just run the first pass of the chosen filter as downscaling shader.
This is an example of the Blur and Max filter downscale to quarter 5 tap in 4 passes box( hexagonal shape as you can see in the last picture).Bur is very smooth jpg actually destroys the quality of the picture.
No comments:
Post a Comment