Shore Effects

../../_images/shoreeffects.png

To apply Shore effects to a boundless ocean, add a 2D Scene depth camera into your project, with only Scene depth in R enabled.

../../_images/scenedepthR.png

Next, create a RenderTexture, setting it to capture only the Red channel

../../_images/RenderTargetFormat.png

Now, attach the RenderTexture to the 2DSceneCapture, and attach the Camera to the correct water instance.

You can now place the camera above where you want to apply the effect (pointing downwards), and adjust the Shore Depth Width and Extents to your liking.