Created
April 12, 2019 14:48
-
-
Save bodqhrohro/88bd5153d883c764a2ec2f49e1a4e931 to your computer and use it in GitHub Desktop.
Preset for Compiz Color Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!ARBfp1.0 | |
TEMP output; | |
TEMP input; | |
TEMP bright; | |
TEMP dark; | |
TEX input, fragment.texcoord[0], texture[0], RECT; | |
MUL dark.rgb, input, 5; | |
MUL bright.rgb, input, 0.55; | |
ADD bright.rgb, bright, 0.45; | |
SUB output.rgb, input, 0.1; | |
CMP output.rgb, output, dark, bright; | |
MOV result.color, output; | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment