Just to extend what Hodgman said. After you apply your projection matrix. all components are divided by w which clamps your x and y between -1 to 1 and z from 0 to 1 in DirectX and -1 to 1 in GL.
BornToCodeMember Since 17 Apr 2004
Offline Last Active Apr 22 2016 08:43 PM