~ubuntu-branches/ubuntu/natty/compiz-plugins-main/natty

« back to all changes in this revision

Viewing changes to colorfilter/data/filters/blackandwhite

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-02-24 17:34:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110224173418-b81hfllshqpciq6n
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

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