Learning webgl_depth_texture example

It’s a very strange example. here:
What’s wrong with it?
It seems doing nothing. It include SSAOShader.js but doing nothing with it. And it shows nothing specials on screen:

This is indeed a mistake. The import should be removed (see https://github.com/mrdoob/three.js/pull/15843)

Well, it visualizes the depth of the scene via THREE.DepthTexture. That is quite something!

1 Like

Yes! How stupid I am… I missed lots of things.
After I learned WebglRenderTarget ,DepthTexture and depth buffer…
Thanks for your answer which lead me to learn how postprocessing works.
By the way, the tDiffuse seems unnecessary in that example.