!!NVts1.0

StartPrelimPass;

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

EndPass;

StartOutputPass;

Combiner;

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

Combiner;

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

FinalCombiner;

input.a = s0;
input.b = s1;
input.g = t0.a;

EndPass;
