Procedural Terrain Generation – Texture – Part 4

In previous posts, we generated a plane, added noise and noise layers to it. Now, it’s time to add texture to our terrain finally! ?

If you haven’t seen previous posts, I would recommend doing so, as the content of this post is based on them.

Do you remember that we added UV to our terrain mesh? We did it in the first post on plane generation. Thanks to that, we don’t need to worry about it now. But to remind ourself which part is responsible for assigning UV to our mesh, let’s put it here.

Continue reading “Procedural Terrain Generation – Texture – Part 4”

Creating Waves on Plane mesh

So in a recent post, we talked about generating a Quad and a Plane, which is an excellent introduction to creating meshes from code! But this time, let’s modify a mesh on a fly, by making water from a Plane with some waves! ?‍♂️

If you read my previous posts, you already know how to generate a quad or a plane from code. We will use the code from my last post to create a plane, so we don’t need to write it again.

But before we can jump into modifying mesh, the first thing that I would do is to add scrolling to water texture. ?‍?

Continue reading “Creating Waves on Plane mesh”

Procedural Terrain Generation – Plane – Part 1

Have you ever wonder how to generate terrain procedurally in Unity? You are in the right place!

In this post, we are going to talk about generating mesh for the terrain.

If you don’t know how a mesh is created, I would recommend checking my last post on exactly that subject.

You will need to have an idea of how to generate a mesh, and you will need to use some math skills here. But don’t worry, we will get through it! ?

Continue reading “Procedural Terrain Generation – Plane – Part 1”