!!ATIfs1.0

StartConstants;

CONSTANT c0 = { 0.299, 0.584, 0.117, 0 };
CONSTANT c1 = { 0.72, 0.72, 0.72, -0.2 };

EndConstants;

StartOutputPass;

SampleMap	r0, t0.str;

MOV	r1, r0;
DOT3	r0.rgb, r0, c0;
MUL	r0.rgb, r0, c1;
ADD	r0, r0, c1.a;
MUL	r0.rgb, r0, r1;

EndPass;
