How can I get the CameraDepthTexture

@Leonidas, @mvaligursky Thanks for the quick reply! Its really helped a lot.

I finally managed to make it without using any postProcessing effect.
For anyone struggling with this situation, can fork my project (its really messy).

I made it by the help of this and the other two posts:

I haven’t tried it on WebGL 1 yet, fingers crossed.

And here is the result:

2 Likes