!!NVts1.0

StartPrelimPass;

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

EndPass;

StartOutputPass;

Combiner;

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

Combiner;

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

FinalCombiner;

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

EndPass;
