How to create a plane that stretches into the horizon - without glitches?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bloqm

I’m creating a simple ocean - a plane that stretches into the horizon.
I tried the naive approach (a huge plane, about 10k units big) but it creates rendering problems where it intersects with the beach, flickering polygons and such.

I know there must a better way to do this, any ideas?

You could take a look at the Godot Open Ocean demo in the Asset lib.

MagnusS | 2021-05-14 21:33

:bust_in_silhouette: Reply From: Legorel

If your ocean is just a flat plane with a texture that you can offset programmatically, you could make the plane follow the player and changing the texture offset accordingly to create an illusion of an infinite ocean.