!!ATIfs1.0

StartPrelimPass;

SampleMap		r0, t0.str;
SampleMap		r2, t1.str;
SampleMap		r3, t3.str;

DOT3	r2.rgb.sat, r2.2x.bias, r3.2x.bias;
MUL		r2.rgb, r2, r2;
MUL		r2.rgb, r2, r2;
MUL		r2.rgb, r2, r2;
MUL		r2.rgb, r2, r2;
MUL		r2.rgb, r2, c0;
MUL		r2.rgb.sat, r2, r0.a;

EndPass;

StartOutputPass;

PassTexCoord	r0, r0.str;
PassTexCoord	r1, t2.str;
SampleMap		r2, t2.str;
PassTexCoord	r3, r3.str;
SampleMap		r4, t4.str;
PassTexCoord	r5, r2.str;

DOT3	r1.rgb.sat, r1, r1;
DOT3	r2.rgb.sat, r2.2x.bias, r3.2x.bias;
MAD		r0.rgb, r0, r2, r5;
MUL		r0.rgb, r1.comp, r0;
MUL		r0.rgb, r0, c0;
MUL		r0.rgb.4x, r0, r4;

EndPass;

