Getting ground color for grass

The basic idea is to have a texture showing the base colors of the underlaying terrain. When using an external terrain generation software you might be able to export that texture from there. Otherwise you could to a top down render of your landscape in game or editor.

Once you got the texture it’s all about sampling it properly in the grass material to match the actual landscape size and position:

1 Like