!!ATIfs1.0

StartConstants;

CONSTANT c2 = { 0.666, 0.333, 0, 0 };

EndConstants;

StartOutputPass;

SampleMap		r0, t0.str;
SampleMap		r1, t0.str;
PassTexCoord	r2, t1.str;

DOT3	r2.rgb, r1.2x.bias, r2;
MAD		r3.rgb.sat, r2.neg, c2.r, c2.g;
MAD		r2.rgb.sat, r2, c2.r, c2.g;
MUL		r3.rgb, r3, c1;
MAD		r2.rgb, r2, c0, r3;
ADD		r2.rgb, r2, r0.a;
MUL		r0.rgb, r0, r2;

EndPass;
