I’m currently following a tutorial to add some water on my game, and in this tutorial, the author uses the GraphicsDevice.ClipPlane property but it doesn’t exists in MonoGame.
How can I solve this problem and get my refractive map from a plane?
I recommend using an oblique view frustum (“Lengyel’s Frustum”) instead of a clip plane.
See:
Lengyel, Eric. “Oblique View Frustum Depth Projection and Clipping”. Journal of Game Development, Vol. 1, No. 2 (2005), Charles River Media, pp. 5–16. Online: http://www.terathon.com/code/oblique.html
You need to include the clipping code in your vertex shader used for rendering. You can use #includes in your HLSL code to share that code between several shaders.