If you're looking to achieve perspective projection there, X2D=X/Z:Y2D=Y/Z so Z=Y/Y2D:X=Z*X2D and SCALE=1/Z Hopefully this helps!