#include "common.h"

vf_spot main (v_lmap v)
{
	vf_spot		o;

	o.hpos 		= mul		(m_VP, v.pos);					// xform, input in world coords
	o.tc0		= unpack_tc_base(v.tc0);					// copy tc
	o.c0		= calc_spot 	(o.tc1,o.tc2,v.pos,unpack_normal(v.norm));	// just hemisphere

	return o;
}
