15bd8deadSopenharmony_ciName 25bd8deadSopenharmony_ci 35bd8deadSopenharmony_ci EXT_depth_float 45bd8deadSopenharmony_ci 55bd8deadSopenharmony_ciName Strings 65bd8deadSopenharmony_ci 75bd8deadSopenharmony_ci WGL_EXT_depth_float 85bd8deadSopenharmony_ci 95bd8deadSopenharmony_ciVersion 105bd8deadSopenharmony_ci 115bd8deadSopenharmony_ci Date: 1/27/1999 Version 1.4 125bd8deadSopenharmony_ci 135bd8deadSopenharmony_ciNumber 145bd8deadSopenharmony_ci 155bd8deadSopenharmony_ci 177 165bd8deadSopenharmony_ci 175bd8deadSopenharmony_ciDependencies 185bd8deadSopenharmony_ci 195bd8deadSopenharmony_ci WGL_EXT_extensions_string is required. 205bd8deadSopenharmony_ci WGL_EXT_pixel_format is required. 215bd8deadSopenharmony_ci 225bd8deadSopenharmony_ciOverview 235bd8deadSopenharmony_ci 245bd8deadSopenharmony_ci For perspective scenes, the density of objects (vertices) increases 255bd8deadSopenharmony_ci as the distance from the eye increases. For a linear depth buffer, 265bd8deadSopenharmony_ci this means that objects (vertices) are sparse for a large portion of 275bd8deadSopenharmony_ci the depth range and are dense for a small portion of the depth buffer. 285bd8deadSopenharmony_ci 295bd8deadSopenharmony_ci This behavior is obvious if you consider standing in a boat looking 305bd8deadSopenharmony_ci at the shore. The near objects include only the boat while the far 315bd8deadSopenharmony_ci objects include the entire shoreline which may include an entire city. 325bd8deadSopenharmony_ci 335bd8deadSopenharmony_ci A non-linear (floating-point) depth buffer helps this problem. If 345bd8deadSopenharmony_ci the near clipping plane is set to 1.0, and the far clipping plane is 355bd8deadSopenharmony_ci set to 0.0, a much greater resolution of objects can occur. 365bd8deadSopenharmony_ci 375bd8deadSopenharmony_ciNew Procedures and Functions 385bd8deadSopenharmony_ci 395bd8deadSopenharmony_ci None 405bd8deadSopenharmony_ci 415bd8deadSopenharmony_ciNew Tokens 425bd8deadSopenharmony_ci 435bd8deadSopenharmony_ci Accepted by the <attribute> parameter of wglGetPixelFormatAttribivEXT, 445bd8deadSopenharmony_ci wglGetPixelFormatAttribfvEXT, and wglChoosePixelFormatExEXT: 455bd8deadSopenharmony_ci 465bd8deadSopenharmony_ci WGL_DEPTH_FLOAT_EXT 0x2040 475bd8deadSopenharmony_ci 485bd8deadSopenharmony_ciAdditions to Chapter 2 of the 1.2 Specification (OpenGL Operation) 495bd8deadSopenharmony_ci 505bd8deadSopenharmony_ci Each of n and f are clamped to lie within [0,1], as are all arguments 515bd8deadSopenharmony_ci of type clampd or clampf. zw is taken to be represented in either 525bd8deadSopenharmony_ci fixed-point or floating-point depending on the attributes of the 535bd8deadSopenharmony_ci window. 545bd8deadSopenharmony_ci 555bd8deadSopenharmony_ci If the depth buffer is a fixed-point format, then zw is taken to be 565bd8deadSopenharmony_ci represented in fixed-point with at least as many bits as there are 575bd8deadSopenharmony_ci in the depth buffer of the framebuffer. We assume that the fixed-point 585bd8deadSopenharmony_ci representation used represents each value k/(2^m - 1), where k is in 595bd8deadSopenharmony_ci the set {0,1,...,2^m - 1}, as k (e.g. 1.0 is represented in the binary 605bd8deadSopenharmony_ci as a string of all ones). 615bd8deadSopenharmony_ci 625bd8deadSopenharmony_ci If the depth buffer is a floating-point format, then zw is taken to be 635bd8deadSopenharmony_ci represented in floating-point with at least as many bits as there are 645bd8deadSopenharmony_ci in the depth buffer of the framebuffer. The floating-point 655bd8deadSopenharmony_ci representation is implementation dependent. 665bd8deadSopenharmony_ci 675bd8deadSopenharmony_ciAdditions to Chapter 3 of the 1.2 Specification (Rasterization) 685bd8deadSopenharmony_ci 695bd8deadSopenharmony_ci None 705bd8deadSopenharmony_ci 715bd8deadSopenharmony_ciAdditions to Chapter 4 of the 1.2 Specification (Per-Fragment Operations and 725bd8deadSopenharmony_cithe Framebuffer) 735bd8deadSopenharmony_ci 745bd8deadSopenharmony_ci None 755bd8deadSopenharmony_ci 765bd8deadSopenharmony_ciAdditions to Chapter 5 of the 1.2 Specification (Special Functions) 775bd8deadSopenharmony_ci 785bd8deadSopenharmony_ci None 795bd8deadSopenharmony_ci 805bd8deadSopenharmony_ciAdditions to Chapter 6 of the 1.2 Specification (State and State Requests) 815bd8deadSopenharmony_ci 825bd8deadSopenharmony_ci None 835bd8deadSopenharmony_ci 845bd8deadSopenharmony_ciAdditions to the WGL Specification 855bd8deadSopenharmony_ci 865bd8deadSopenharmony_ci None 875bd8deadSopenharmony_ci 885bd8deadSopenharmony_ciErrors 895bd8deadSopenharmony_ci 905bd8deadSopenharmony_ci None 915bd8deadSopenharmony_ci 925bd8deadSopenharmony_ciNew State 935bd8deadSopenharmony_ci 945bd8deadSopenharmony_ci None 955bd8deadSopenharmony_ci 965bd8deadSopenharmony_ciNew Implementation Dependent State 975bd8deadSopenharmony_ci 985bd8deadSopenharmony_ci None 99