lamp texture coordinate

Hi there.

I have been using spot lamps with textures mapped to them quite a lot lately. This allows me to cast shadows/highlights from windows doors etc. without producing huge amounts of noise.

The only problem is the method I use is quite fiddly and produces quite a distorted image. It also does not move correctly with the lamp.

A Normal coordinate connected to a mapping node.

Question. Does anyone know a better Lamp Mapping technique?