How to convert the DepthTexture into the distance of the threejs world.
I want to get the specific depth distance of a pixel in the DepthTexture. How can I get it?
I guess you mean the distance in world units. If so, you find the code for this in: three.js webgl - Depth Texture
The value you want to use is the result of perspectiveDepthToViewZ()
(assuming you are using a perspective camera).
Thank you. I’ll try.