Coordinates and Raster
NDC to Screen Mapping
Map a point from normalized device coordinates to screen coordinates, then choose the pixel cell.
ndc-to-screen-mapping
This lesson uses NDC values in [-1,1]. The viewport transform maps them to screen space, with y flipped downward for raster rows.