!!ATIfs1.0

StartPrelimPass;

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

DOT3	r1.r, r0.2x.bias, r1;
DOT3	r1.g, r0.2x.bias, r2;
DOT3	r1.b, r0.2x.bias, r3;
DOT3	r0.rgb.2x, r1, r4;
MUL		r0.rgb, r0, r1;
DOT3	r2.rgb, r1, r1;
MAD		r3.rgb, r4, r2.neg, r0;

EndPass;

StartOutputPass;

SampleMap		r0, t0.str;
SampleMap		r3, r3.str;

MUL		r0.rgb, r3, r0.a;
MUL		r0.rgb, r0, c0;
MOV		r0.a, 1;

EndPass;
