Any idea what might be causing my shadergraph to create these weird triangles when set to "transparent"?

Question

I'm trying to use Gerstner waves to create a vertex shader. Everything was going fine until I set the shader to transparent, and started getting these weird triangles when viewing my mesh from certain angles.

I'm VERY new to Unity so I'm not entirely sure what might be the culprit here. I'm noticing that the mesh is semi-transparent even while the opacity is set to 1; I'm not sure what that's about, but that's just a side-concern. So my questions:

  1. Is it an issue with transparency? How might I go about fixing that?
  2. Could it be that my normals are screwed up? I tried adjusting the normals using an offset point but maybe didn't implement it correctly? Is there a way to debug normals after vertex shading?
  3. Is it some third thing I don't even know about?

Any help would be appreciated; thanks!

Posted May 16, 2022, 5:45 PM UTC

20

No comments yet

Nobody commented on this post, or the comments weren't captured.