Bug while accessing depth buffer of the camera

How could we fix this issue?
https://playcanvas.com/project/657274/overview/toon-water

Hi @yash_mehrotra,

You can enable the Depth Grabpass property on your active camera to enable access to the depth buffer (this wasn’t available when this project was authored):

Still I think there will be additional issues most likely, this is an older project and may require refactoring.