How to show the character range in the terrain

Hi everyone and thanks in advance.
I am trying to paint the terrain showing the range of a character.
Something like this:
5228216--521363--upload_2019-11-30_0-31-10.png

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.

1 Like

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.

1 Like

@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.

1 Like

IF the terrain is flat, easiest way would be to just use a triangle mesh.

1 Like

Yea, definitely not design, moving to general graphics.

Thanks to everyone for your tips! My terrain is not always flat, I will check your options.

Use a projector. It works similar to a light but it’s just for drawing things.

1 Like

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