~unity-team/compiz/plugins-main-trunk.fix_wrong_window_move_expo

« back to all changes in this revision

Viewing changes to colorfilter/data/filters/contrast

  • Committer: David Barth
  • Date: 2011-03-29 16:36:40 UTC
  • Revision ID: david.barth@canonical.com-20110329163640-fpen5qsoo0lbjode
initial import from compiz-plugins-main_0.9.4git20110322.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
!!ARBfp1.0
 
2
TEMP output;
 
3
TEMP input;
 
4
TEMP bright;
 
5
TEMP dark;
 
6
 
 
7
TEX input, fragment.texcoord[0], texture[0], RECT;
 
8
 
 
9
# Subtract color by 0.51 => everything with more then 0.51 will have at least 0 ;
 
10
SUB output.rgb, input, 0.51;
 
11
 
 
12
# Create a dark color..;
 
13
SUB dark.rgb, input, 0.3;
 
14
# ..and a bright color ;
 
15
ADD bright.rgb, input, 0.3;
 
16
 
 
17
# All colors which are < 0 (original color - 0.51 < 0) get a dark color and everything else a bright color ;
 
18
CMP output.rgb, output, dark, bright;
 
19
 
 
20
MOV result.color, output;
 
21
END