BlackMojito Posted January 23, 2018 Share Posted January 23, 2018 I have some doubt about the depth shader. The output seems not to be the depth value in NDC space, nor the value like gl_FragCoord.z. So what it is about? Please correct me if I am wrong. gl_Position = viewProjection * finalWorld * vec4(position, 1.0); vDepthMetric = ((gl_Position.z + depthValues.x) / (depthValues.y)); Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.