GL.glDepthRange() - Pike Reference Manual
文章推薦指數: 80 %
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near and far clipping planes. glDepthRange specifies a linear ... ➤GL.glDepthMask() GL.glDisable()➤ MethodGL.glDepthRange() Method glDepthRange voidglDepthRange(floatzNear,floatzFar) Description Afterclippinganddivisionbyw, depthcoordinatesrangefrom-1to1, correspondingtothenearandfarclippingplanes. glDepthRangespecifiesalinearmappingofthenormalizeddepthcoordinates inthisrangetowindowdepthcoordinates. Regardlessoftheactualdepthbufferimplementation, windowcoordinatedepthvaluesaretreatedasthoughtheyrange from0through1(likecolorcomponents). Thus, thevaluesacceptedbyglDepthRangearebothclampedtothisrange beforetheyareaccepted. Thesettingof(0,1)mapsthenearplaneto0and thefarplaneto1. Withthismapping, thedepthbufferrangeisfullyutilized. ParameterzNear Specifiesthemappingofthenearclippingplanetowindowcoordinates. Theinitialvalueis0. ParameterzFar Specifiesthemappingofthefarclippingplanetowindowcoordinates. Theinitialvalueis1. Throws GL_INVALID_OPERATIONisgeneratedifglDepthRange isexecutedbetweentheexecutionofglBegin andthecorrespondingexecutionofglEnd.
延伸文章資訊
- 1glDepthRange_百度百科
glDepthRange specifies a linear mapping of the normalized z coordinates in this range to window z...
- 2glDepthRange 函式(Gl) - Win32 apps | Microsoft Docs
GlDepthRange 函式會指定從正規化裝置座標到視窗座標的z 值對應。
- 3gldepthrange(3) - Linux man page - Die.net
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near...
- 4GL.glDepthRange() - Pike Reference Manual
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near...
- 5how does glDepthRange work? - Stack Overflow
glDepthRange specifies a linear mapping of the normalized depth coordinates in this range to wind...