-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Line Thinning Shader


Anime4K_ThinLines_HQ.glsl
Anime4K_ThinLines_Fast.glsl
Anime4K_ThinLines_VeryFast.glsl
Makes lines thinner. Good for older anime where lines are very thick when upscaled to 1080p or 4K. Use according to personal taste and type of anime.
The recommended version to use is Anime4K_ThinLines_HQ.glsl
.
Line Darkening Shader
DTD Shader
#define STRENGTH 0.6 //Strength of warping for each iteration
#define ITERATIONS 1 //Number of iterations for the forwards solver, decreasing strength and increasing iterations improves quality at the cost of speed.
Since the definition of what is a "line" is ambiguous, this shader might warp small shapes. This is usually unnoticeable unless comparing the processed image directly with the original.
The Fast/VeryFast variants perform warping on a lower resolution mask. This might affect quality on small details, but significantly improves speed.
Unlike other shaders, this shader's computational complexity scales with O(n^3) instead of O(n^2). An image twice the size will make the shader 8x slower. Be careful when using this shader on very large images (E.g. >1440p) and consider using the lower quality, faster variants.
Due to this shader using bilinear filtering for better performance, small details might be blurred when using this shader.