How to make MeshInstance3D still render even if the camera is inside it?

Godot Version

4.4

Question

I am trying out simple water from this tutorial here: https://www.youtube.com/watch?v=ZgpgwbJGe78 and I already got what I wanted.

Right now, I have expanded my body of water to be something like 100 x 100 x 100, so it is just a huge water cube. I want the player to be able to go into the water and swim in it. I moved my camera inside the whole body of water, but then it seems the whole body of water just disappeared. Maybe it is because the MeshInstance3D does not render when the camera is inside it?

How to make it so I will still have my body of water when my camera is inside it? Or normally how do we take care of this?

Help > Shaders

1 Like

This disables backface culling, so with it you should be able to see the water from inside. To make it look like the player is actually inside water you should probably apply a screen effect like in Minecraft or Subnautica though.

Edit:
Oh, in the tutorial they don’t use a shader… you can use StandardMaterial3D.cull_mode then. (The link is from the same topic as the other quote)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.