!!NVts1.0

StartPrelimPass;

SampleMap	t0, 2D;		# diffuse
SampleMap	t1, 2D;		# normal
SampleMap	t2, CUBE;	# light vec
SampleMap	t3, CUBE;	# half vec

EndPass;

StartOutputPass;

Combiner;

input.a = t1.expand;
input.b = t2.expand;
input.c = t1.expand;
input.d = t3.expand;
out = s0, s1, discard, none, none, true, true, false;

Combiner;

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

Combiner;

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

Combiner;

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

Combiner;

input.a = s1;
input.b = s1;
out = s1, discard, discard, none, none, false, false, false;

Combiner;

input.a = s1;
input.b = t1.a;
out = s1, discard, discard, none, none, false, false, false;

Combiner;

input.a = s1;
input.b = c1;
out = s1, discard, discard, none, none, false, false, false;

Combiner;

input.a = s0;
input.b = 0.invert;
out = s0, discard, discard, 2x, none, false, false, false;

FinalCombiner;

input.a = ef;
input.b = s1;
input.d = s0;
input.e = color0;
input.f = c0;
input.g = 0;

EndPass;
