!!NVts1.0

StartConstants;

CONSTANT c0 = 0.33333333;

EndConstants;

StartPrelimPass;

SampleMap		t0, 2D;
SampleMap		t1, 2D;
SampleMap		t2, 2D;
PassTexCoord	t3;

EndPass;

StartOutputPass;

Combiner;

input.a = t0;
input.b = c0;
input.c = t1;
input.d = c0;
out = discard, discard, s0, none, none, false, false, false;

input.a.a = t0.a;
input.b.a = c0.a;
input.c.a = t1.a;
input.d.a = c0.a;
out.a = discard, discard, s0, none, none, false, false, false;

Combiner;

input.a = s0;
input.b = 0.invert;
input.c = t2;
input.d = c0;
out = discard, discard, s0, none, none, false, false, false;

input.a.a = s0.a;
input.b.a = 0.invert.a;
input.c.a = t2.a;
input.d.a = c0.a;
out.a = discard, discard, s0, none, none, false, false, false;

Combiner;

input.a = s0;
input.b = color0;
out = s0, discard, discard, none, none, false, false, false;

input.a.a = s0.a;
input.b.a = color0.a;
out.a = s0, discard, discard, none, none, false, false, false;

Combiner;

input.a.a = s0.a;
input.b.a = color1.b;
out.a = s0, discard, discard, none, none, false, false, false;

Combiner;

input.a.a = s0.a;
input.b.a = t3.b;
out.a = s0, discard, discard, none, none, false, false, false;

FinalCombiner;

input.d = s0;
input.g = s0.a;

EndPass;
