PDA

View Full Version : depth value in the pixel...



ZhugeLiang
08-22-2000, 12:27 PM
Assume pixel's coordinates are

(0,0),(1,0),(1,1),(0,1) : each vertex in a pixel

(0,0) : left and lower coordinate value

(1,0) : right and lower coordinate value

....are the same as the Cartesian Coordinate...

Then Where are the depth values obtained

by glReadPixels defined?

I think the value will be defined at (0.5,0.5)

Is it right???



[This message has been edited by ZhugeLiang (edited 08-22-2000).]

[This message has been edited by ZhugeLiang (edited 08-22-2000).]