-
-
Save hrj/42e4c4dba6a9a595d473 to your computer and use it in GitHub Desktop.
A reddish filter for Compiz.
This file contains 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 tex; | |
TEX tex, fragment.texcoord[0], texture[0], RECT; | |
MUL tex, tex, {0.8, 0.6, 0.6, 1.0}; | |
MOV result.color, tex.rgba; | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this, save this file in a local folder, say as
~/local/compiz/reddish
, and configure the color-filter to point to it using the CompizConfig program.To activate the effect, you can use the keyboard shortcuts defined in the CompizConfig program.
The values in line #4 can be tweaked to get the right color effect. That line specifies the multiplication factor for Red, Green, Blue and Alpha. When the factor is one, that channel remains unchanged. When zero, it is completely filtered out.