|Topic was automatically imported from the old Question2Answer platform.
I want to project a repeatable grid on to a 3D terrain, similar to what can be seen in a lot of strategy, building or simulation games, like Civilization, or the Sims. How can I go about achieving this in Godot 4.0?
The most obvious choice would be to use the new Decal node to project a grid texture on to the terrain. This kind of works, but I haven’t found a way to make the texture repeat indefinately. I was hoping it would be possible to assign a shader material to the decal, so that I could modify the UV’s etc. But as far as I can tell this is not possible.
Another idea is to modify the terrain’s material shader to include a planar projection of the texture. This will likely also work, but I would prefer a solution that works on multiple different meshes and materials, not specific to some materials.
Any idea’s or suggestions are welcome.
Found that there is a proposal to add support for custom decal materials, but based on the comments, it seems to be difficult to do without affecting performance too much.