AA Shader 4.o by guest.r - works well with high internal resolutions (hint: Mupen64)

Hi!

I’ve ported a shader from ePSXe made by guest.r. It’s called AA Shader 4.o. It works very well with cores that render at high internal resolutions, like Mupen64. It worked very well when I set the internal res to 2048x1536. It provides anti-aliasing in high res and in low res sprites too.

It’s attached.

Hmm it didn’t really work with PPSSPP for me: Without shader

With shader

SM64 looks nice though

https://dl.dropboxusercontent.com/u/149537/Screenshots/RetroArch-0427-234301.png

Oh, I couldn’t test on PPSSPP. It probably needs some adjustments to the resolution param inside the shader.

As a rule of dumb, the resolution param (res) defined inside the shader must be 75% of the internal resolution set inside core options. That’s why it works for mupen64, as I optimized the shader for it.

So, you could use this rule to see if it works with PPSSPP.

75% or 75% higher? 75% improved a bit but it’s still a blurry mess

Ok I see something now :smiley:

Without

With shader

Had to go all the way up to 3x res #define res float2(14400.0, 8160.0)

I’m running on a 4k monitor so I use the highest IR and the highest output res avaiable so no downsampling for me, any AA shaders are appreciated

You posted the same shot? I can’t see any difference.

I can see it, that’s like FXAA: it removes jaggies everywhere (even on the life bar border) but it blurs textures as much (Rockman face/model here, the rest is already quite blurry).

the best config I got here: res=(8192, 4096), internal res 3360x1904, output res 1440x816. xbrz lvl3 enabled

The fine tuning must be an interesting process…

Ok, added to common-shaders repository. It has a single param adjustable. It’s set to 5, which works perfect for N64. For PPSSPP, you may change it to 15~20.

I made a new cgp combining a xbr and jinc2 in a way that the resut is very good.

The cgp is here: https://github.com/libretro/common-shaders/blob/master/cgp/2xbr-jinc2-sharper-hybrid.cgp

Some screenshots: http://imgur.com/xePhVzP,S6tOdJ9,RcEdBPA,ylFB3eQ,j7jhBK2,XIjV6wN,b9sPybg,NR1pIpv,qWniMym,rM3lVbt,k9QfMSW,MQeech1,WNs0lRe,VJbZYj6,PEpGKxg,FpwSEWh#0

Same cgp on N64:

More: Imgur