!!ATIfs1.0

StartConstants;

CONSTANT c1 = 0.265;
CONSTANT c2 = 0.195;
CONSTANT c3 = 0.135;
CONSTANT c4 = 0.095;

EndConstants;

StartOutputPass;

SampleMap	r0, t0.str;
SampleMap	r1, t1.str;
SampleMap	r2, t2.str;
SampleMap	r3, t3.str;
SampleMap	r4, t4.str;
SampleMap	r5, t5.str;

MUL r0, r0, c2;
MAD r0, r1, c2, r0;
MAD r0, r2, c3, r0;
MAD r0, r3, c3, r0;
MAD r0, r4, c4, r0;
MAD r0.2x, r5, c1, r0;

EndPass;
