Hello,
I’m building a water shader with shader graph on HDRP. I’m using a simple refraction method:
It works fine, refracts as it should until, a bung of steps later, hen I’m, adding the part for the foam (a simple depth mask for the contact edge with the shore added to a broader shoreline mask - also a depth mask). Somewhere around this point the refraction brakes:
before → after
And that’s it, it breaks. Can’t undo, recompile doesn’t work, deleting the foam part of the shader does nothing, nor clearing cache, restarting unity/computer/whole apartment etc. I can’t even make a new refract shader because it behaves the same way. The only thing that works is one of my initial shaders.
I took that one and tried to rebuild the extra steps that I had in the broken one and when I added the foam it broke → go to previous loop.
Does anyone have a clue about what might cause such a behavior?
Thank you!
P.S. here’s the foam culprit: