!!ATIfs1.0

StartPrelimPass;

SampleMap		r1, t0.str;
SampleMap		r3, t2.str;

DOT3	r3.rgb, r1.2x.bias, r3.2x.bias;
MUL		r3.rgb, r3, r3;
MUL		r3.rgb, r3, r3;
MUL		r3.rgb, r3, r3;
MUL		r3.rgb, r3, r3;
MUL		r3.rgb, r3, c1;
MUL		r3.rgb, r3, r1.a;

EndPass;

StartOutputPass;

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

DOT3	r4.rgb, r4, r4;
DOT3	r2.rgb, r1.2x.bias, r2.2x.bias;
MUL		r2.rgb, r2, c0;
MAD		r0.rgb, r0, r2, r3;
MUL		r0.rgb, r0, r4.comp;
MOV		r0.a, 0;

EndPass;
