douysu

Results 5 comments of douysu

我也发现这个问题了

Thanks for your answer. file **depth-pass.fs.glsl** will produce the depth map and the value is outDepth, because is in camera space. But why also need the line code `gl_FragDepth =...

hi, ttnghia. In file **depth-pass.fs.glsl**, `clipSpacePos.z / clipSpacePos.w` is NDC space and it's range is [-1, 1]. But gl_FragDepth range is [0, 1]. Why is `gl_FragDepth = clipSpacePos.z / clipSpacePos.w;`...