Skip to content

Instantly share code, notes, and snippets.

View ralphschuler's full-sized avatar

Ralph Schuler ralphschuler

View GitHub Profile
@voltmtr
voltmtr / lumasharpen.glsl
Last active July 11, 2023 00:25
usage: add post-shaders=~/config_directory/lumasharpen.glsl to your vo=opengl/opengl-hq config
// vim: set ft=glsl:
/*
LumaSharpen 1.4.1
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.