hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.18k stars 2.17k forks source link

A better FXAA shader for CJK Fonts Rendering. #12061

Closed peaceshi closed 5 years ago

peaceshi commented 5 years ago

the default fxaa is not perfect for complex fonts such as CKJ fonts. so I try the NVIDIAGameWorks Sample. https://github.com/NVIDIAGameWorks/GraphicsSamples/blob/80e8ba8f5e8935821513207033490735dd3279d8/samples/es3-kepler/FXAA/assets/shaders/FXAA_Extreme_Quality.frag

here is my profile. https://github.com/peaceshi/ppsspp-shaders

this is only for PC. Phone or other devices may be hard to run it because of its hardware.

And really really really really really need official SMAA support! it is perfect with this FXAA.

hrydgard commented 5 years ago

Thanks, will take a look at these soon.

peaceshi commented 5 years ago

Thanks, will take a look at these soon.

really really really really need official SMAA support!!!!

hrydgard commented 5 years ago

I meant I'll take a look at your FXAA shader.

Why SMAA specifically? That's just an old somewhat more advanced FXAA-ish technique.

peaceshi commented 5 years ago

I meant I'll take a look at your FXAA shader.

Why SMAA specifically? That's just an old somewhat more advanced FXAA-ish technique.

use fxaa with smaa is better for some games. such as SMAA is just like what you said.

maybe what really need is another AntiaAliasining with fxaa.

LunaMoo commented 5 years ago

If you are in need of a higher quality AA only useful for powerful desktop, we kind of have other options which you can also try that might end up looking better(althrough nothing is universally better and having options is always good). Most complex AA shader we currently have included in PPSSPP is the video smothingAA which invents new pixels and can work pretty well even on 2D graphics depending on it's settings(it's results can be similar to upscaling shaders), by default it's a subtle AA in-game and heavy smoothing for videos. We also have SSAA which can be manually set above x2 it defaults to and at x4 will already give better results than any other AA for 3D graphics at least. Fonts are best just replaced using texture replacement as most PSP games outside of some visual novels have extremely low res fonts and nothing can make them look good.

Leopard20 commented 5 years ago

What about CMAA? I use it on a few PC games and it works really well. Performance penalty is the same as FXAA but the final result is very close to SMAA. Not sure how it works and whether it can be implemented but might be worth taking a look at.