Commits

Jason McKesson committed cbbe5c9

Copyediting.

Comments (0)

Files changed (1)

Documents/Positioning/Tutorial 05.xml

                 farthest. However, if our clip-space Z values were negated, the depth of 1 would be
                 closest to the view and the depth of 0 would be farthest. Yet, if we flip the
                 direction of the depth test (GL_LESS to GL_GREATER, etc), we get the exact same
-                result. So it's really just a convention. Indeed, flipping the sign of Z and the
-                depth test was once a vital performance optimization for many games.</para>
+                result. Similarly, if we reverse the glDepthRange so that 1 is the depth zNear and 0 is the depth zFar, we get the same result if we use GL_GREATER. So it's really just a convention. Indeed, flipping the depth range and the
+                depth test every frame was once a vital performance optimization for many games.</para>
         </section>
         <section>
             <title>Rendering with Depth</title>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.