Computer Graphics, Opengl, 3d Modeling, 3d Design.
logarithmic depth to gl_Position.z. Please note that the depth value assigned to gl_Position is not in SCS whose range is [0,1), but in NDCS, whose range is [-1, 1). There is no task for the fragment shader, as the depth is implicitly set to 2.0 * gl_FragCoord.z/gl_FragCoord.w - 1. #version 330