- Home /
Question by
HSForge · Oct 19, 2017 at 06:53 PM ·
reflection
A water reflection problem
Hello, so here I'm trying to make reflection for my water surface. I simply put a plane with maximum smoothness right under the water surface. It looks fine but there is a problem. If you see the pic below, the plane reflects the top part of the rock just fine (circled in green), yet it also unwantedly reflects the bottom part of the rock (circled in red).

I wonder is there a workaround to fix this? What I'm doing so far is moving the reflection probe to my camera's position with this code:
float oy = Plane.transform.position.y - Main.transform.position.y;
transform.position = new Vector3(MainCamera.transform.position.x, Plane.transform.position.y + oy, MainCamera.transform.position.z);
Any help is highly appreciated!
asdasd.jpg
(288.1 kB)
Comment
Your answer