Hi everyone and thanks in advance.
I am trying to paint the terrain showing the range of a character.
Something like this:
The example is with a spotlight but it is not nice, problem with the shadows and different intensities. I would like to paint a triangle in the terrain.
Any idea of how can I do this?
Hi and welcome.
Firstly this question is more suitable to Game Design forum section.
I requested to move it there.
Just use quad GameObject, with triangle shaped texture and put slightly above the ground.
It most certainly is not. This is a General Graphics question, not a design one. There’s already enough things that have nothing to do with game design in Game Design.
This method will only work if the ground is completely flat at all times. The ideal solution would probably be something involving decals. There’s a free asset that works, so long as the instructions in the reviews are followed to ensure compatibility with more recent Unity versions.
@jsgg25 you could also use an image effect that draws a world space distance effect. This would be then independent of geometry complexity and the underlying materials.
I tried with decals but it is too heavy. It needs to build the decal in every movement otherwise, it keeps the terrain shape. I will try with a projector as recommend @kdgalla