Screen Transformation
One final transformation maps the 3D scene onto the pixels of the screen.
\[S=\begin{bmatrix}
w\,/\,2 & 0 & 0 & w\,/\,2 \\
0 & h\,/\,2 & 0 & h\,/\,2 \\
0 & 0 & d\,/\,2 & d\,/\,2 \\
0 & 0 & 0 & 1 \\
\end{bmatrix}\]
For example:
\[\begin{array}{lcr}
w &=& 1920 \\
h &=& 1080 \\
d &=& 65536 \\
\end{array}\]