Water foam/Force field shader working in editor view, but not in test.

Hello, I’ve been trying to work on my stylized water shader on my level in the shader graph editor, specifically following this force field tutorial for getting the water foam to appear where it collides with other mesh:


The issue I have is it seems to be working fine in the editor view, but when I hit play the entire asset just becomes the colour of the foam. I have researched for a fix already and the only one I found is if I have added the shader in the “always included shaders” list in project settings which I have and still doesn’t work. Please help, thank you!

After encountering this problem myself and searching the internet to no avail, I took a look at the render pipeline asset. Turning on “Depth Texture” setting allowed for the foam to work as intended.

Hope this helps167176-help.png