-
Notifications
You must be signed in to change notification settings - Fork 1.4k
RA Shaders
Anime4K_RA_CNN_M.glsl
Anime4K_RA_CNN_L.glsl
Anime4K_RA_CNN_UL.glsl
Anime4K_RA_DoG.glsl
Tries to reduce the magnitude of resampling artifacts caused by non-linear resampling. E.g. ringing, aliasing.
The recommended version to use is Anime4K_RA_CNN_L.glsl
for mid/high end GPUs and Anime4K_RA_CNN_M.glsl
for less powerful GPUs. Only use Anime4K_RA_CNN_UL.glsl
if you have a very high end GPU like Vega 64 or RTX 2080.
#define STRENGTH 1 //Strength of artifact reduction, high values might blur some edges.
CNN_M and CNN_L variants introduces small amounts of checkerboard artifacts due to the pixelshuffle layer and the low parameter count. This is usually unnoticeable under live conditions.
As higher resolution anime (E.g. 1080p) have less sub-pixel detail, it is possible to use low quality variants such as Anime4K_RA_DoG.glsl
for better speed without compromising much quality. The CNN shaders are best at processing sub-pixel detail, and they are usually overkill for 1080p, especially if a previous upscaling pass was used (eg. 720p->1080p).