Fixing normals after doing animated water with displacement?

So I figured out the solution to the issue, here’s a screenshot of the graph. I’m also including all the code saved into a text file! you can just copy and paste that files contents into a material so hopefully that helps anyone else dealing with this issue!