In this term, v=(vx, vy, vz) is the unit vector that points from the spotlight to the vertex, and d=(dx, dy, dz) is the spotlight's direction, assuming the light is a spotlight and the vertex lies inside the cone of the illumination produced by the spotlight.