Simplify the depth transformation in the scene graph.
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Wed, 11 Apr 2012 15:39:46 +0000 (17:39 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 08:01:11 +0000 (10:01 +0200)
commit70dee431e82aa4596aa993570120ab9afc7b608b
tree6349d66a034b33d3bb3b45d5c5d12a726beb7ce5
parent8c68dcd2aa98f12d4e5c731dbc04a49c05917ed8
Simplify the depth transformation in the scene graph.

Use default depth function GL_LESS and depth clear value 1, and
set the near and far clipping planes to -1 and 1. This change
will make the transformations a bit easier for people who
implement custom 3D geometry since [-1, 1] is the typical z-range
after a projection transformation. The change has no visual impact
on 2D geometry.

Change-Id: I75d4a8acc15131ffaa5d13a749e42dffbc1d09db
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/scenegraph/coreapi/qsgdefaultrenderer.cpp
src/quick/scenegraph/coreapi/qsgdefaultrenderer_p.h
src/quick/scenegraph/coreapi/qsgrenderer.cpp