~linaro-graphics-wg/compiz-plugins-main/oneiric-gles2

« back to all changes in this revision

Viewing changes to colorfilter/data/filters/blackandwhite

  • Committer: Sam Spilsbury
  • Date: 2011-09-20 07:43:55 UTC
  • Revision ID: sam.spilsbury@canonical.com-20110920074355-puzdutejjwsu3ta2
Sync - Remove Plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
!!ARBfp1.0
2
 
TEMP tex, temp, black, white;
3
 
MOV black, {0, 0, 0, 0};
4
 
MOV white, {1, 1, 1, 1};
5
 
TEX tex, fragment.texcoord[0], texture[0], RECT;
6
 
DP3 temp.x, tex, {0.33333, 0.33333, 0.33333, 0};
7
 
ADD temp.x, temp.x, -0.5;
8
 
CMP temp, temp.x, black, white;
9
 
MOV temp.a, tex.a;
10
 
MOV result.color, temp;
11
 
END