- Home /
Edge Detection (effect normals) with water (transparent) error.
Hello Everyone,
I am currently using Unity 5 and my camera uses the Edge Detection Effect Normals Script. Everything looks nice, but a strange error is happening where the edge detection is rendering through the terrain and water. So you are actually seeing buildings and objects through hills and such. Would anyone know what is causing this error? I have attached a screenshot to show everyone what I am talking about. I'm not quite sure what is causing this...
If I turn my water off, it starts to render correctly, but since it is an ocean based game, it is a big issue.
Any help would be appreciated.
Thank you very much!
Try to use renderQueue=1000; and attach it to an object. That will cause the object to render before any transparency shaders. If it stops that one object from being shown like that, then it is the issue that transparency shaders are messing up with the order of rendering.
Your answer
![](https://koobas.hobune.stream/wayback/20220613191618im_/https://answers.unity.com/themes/thub/images/avi.jpg)