0 votes

I'm doing a procedurally generated terrain and can't figure out how to implement a single cell material assignment. By cell I mean the two triangles of the mesh. The use of RGBA textures for material separation greatly limits the amount of materials available. I think I need something like a Material Array or Texture Atlas. I need something that I can say - this cell by Vector (1, 1) is "grass", and this Vector (2, 2) is "brick", and this Vector(3, 3) is " cobble". How to do it?

Now I use RGB texture, but I'm not happy with it
Now I use RGB texture, but I'm not happy with it

asked Dec 9, 2018 in Projects by BorisJohnson (37 points)

Do you need to blend between materials?

Yes. But materials should be very many

Well then.
You can't really blend between materials on one geometry. That's not even how opengl works. Instead you would need to have one shader that can have different appearances depending on a texture map like yours. Even though you have only 4 channels in a texture to work with, no one's stopping you from using another 4 in a different texture.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.