!!ATIfs1.0

StartPrelimPass;

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

DOT3	r2.rgb.sat, r1.2x.bias, r2.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, c1;
MUL		r2.rgb.sat, r2, r1.a;

EndPass;

StartOutputPass;

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

DOT3	r2.rgb.sat, r1.2x.bias, r2.2x.bias;
MAD		r0.rgb, r0, r2, r3;
MUL		r0.rgb, r0, c0.2x;
MUL		r0.rgb, r0, color0;

EndPass;
