Unity Tutorial - Masking objects in the water using stencil buffers
This tutorial will show you how you can clip out parts objects from being rendered, alongside this I will give a simplified explanation of how stencil buffers work. Stencil buffers can be thought of similarly to how clipping masks work, In this case they will be used in 2 ways firstly they can exclude whats inside the mask from being rendered and secondly they can do the inverse of this and only include the contents of the mark depending on the logic that is applied in the shader. ...