How to make water fill the height

When I use water, it, in fact, has height == 0.

Water

How to make it fill all the space from Y-axis 0 to water’s height?

First of all try setting your near clipping plane to 0 and then write a script so that if your camera goes under the water then you turn a blue fog so that it looks like you are under water, if you are just looking for the bottom to be covered up then just set the near clipping plane to 0.

The unity water prefab is only meant to be a plane and not have height. You would need to add another instance of the water plane and rotate it to be in the relevant plane (XY or XZ).

2 Answers

2

Hey Rankor,

Well, what your asking is complex… As far as I know that would be very expensive (frame-rate wise), so most people get around it by adding image effects, or not letting you see underwater. If you want to make water fill up a space, I would suggest trying to use very small spheres all with rigidbodys… make a box, and spawn them at the top… Then, watch the framerate…

I might try that… it sounds fun…

Good luck!

Set your clip plane on the camera to as low as it will go (0.1) and it should be fine.