webgl-fundamentals
webgl-fundamentals copied to clipboard
m4.js : Possible mistake in Orthographic's documentation
Computes a 4-by-4 orthographic projection matrix given the coordinates of the planes defining the axis-aligned, box-shaped viewing volume. The matrix generated sends that box to the unit box. Note that although left and right are x coordinates and bottom and top are y coordinates, near and far are not z coordinates, but rather they are distances along the negative z-axis. We assume a unit box extending from -1 to 1 in the x and y dimensions and from -1 to 1 in the z dimension.
There may be a mistake here, if z dimension used the same unit box as x and y wouldn't we have a phrase more like "We assume a unit box extending from -1 to 1 in the x, y and z dimensions"?
From reading the rest, it probably was meant to be: We assume a unit box extending from -1 to 1 in the x and y dimensions and from -1 to 0 in the z dimension.
Same goes for frustum's description.