The settings of the mesh gave me the desired result.
Shrink wrap modifier for this purpose, you can start by creating a mesh object that represents the surface of your water, such as a plane or a more complex mesh that has been sculpted or modeled to resemble ocean waves.
Next, create a separate mesh object that represents the ocean floor or seabed and position it underneath the water surface mesh.
Apply the shrink wrap modifier to the water surface mesh and set the target to the ocean floor mesh. This will cause the water surface mesh to conform to the shape of the ocean floor mesh, creating the illusion of water depth.
It's important to note that using the shrink wrap modifier alone may not be enough to achieve a truly realistic ocean effect. Additional techniques, such as adding texture and material properties to the water surface, may also be necessary to achieve a convincing result.