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

in Engine by (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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.