Skip to content

Line Darkening Shader

bloc97 edited this page May 28, 2020 · 3 revisions

Example (Original / Processed)

Files

Anime4K_DarkLines_HQ.glsl
Anime4K_DarkLines_Fast.glsl
Anime4K_DarkLines_VeryFast.glsl

Description

Makes lines darker, increasing perceived contrast. Good for anime with very light lines and/or alongside line thinning, as thinner lines might become even lighter. Use according to personal taste and type of anime.

The recommended version to use is Anime4K_DarkLines_HQ.glsl.

Related shaders

Line Thinning Shader
DTD Shader

Settings

#define STRENGTH 1.5 //Line darken proportional strength, higher is darker.improves quality at the cost of speed.

Special considerations

Since the definition of what is a "line" is ambiguous, this shader might darken non-line edges and small shapes. This is usually unnoticeable unless comparing the processed image directly with the original.

The Fast/VeryFast variants perform darkening on a lower resolution mask. This might affect quality on small details, but significantly improves speed.

Clone this wiki locally