A flashlight - How to do perspective projection?

Blitz3D Forums/Blitz3D Programming/A flashlight - How to do perspective projection?

if i scale down the flashlight spot for every vertex, i get a spot with a shape of a heart or something...

but i could use the Z-DISTANCE instead of radial distance. i dont know how to do that or wheter it will work!