0
\$\begingroup\$

I'm generating a polygon from code to display unit ranges in my game. Here's how it looks so far:

Polygon

I would love to be able to now use my texture and only apply it to the edges of this polygon (imagine a stroke with no fill). Could someone point me in the right direction with this issue?

\$\endgroup\$
3
  • 1
    \$\begingroup\$ Presumably you've considered using a LineRenderer, or using your polygon mesh creation logic to create your own polygon strip around the outside, or using an outlining shader. Have you run into any specific problems with pursuing one or another of these directions? \$\endgroup\$
    – DMGregory
    Jan 14, 2019 at 15:11
  • \$\begingroup\$ Actually, the idea of using an outlining shader has for some reason completely escaped me. Guess I've been deep down into that triangulation code for too long. Thanks. \$\endgroup\$
    – waxx
    Jan 14, 2019 at 15:16
  • 1
    \$\begingroup\$ Feel free to edit your question if you get partway into a solution and need help completing/polishing it. \$\endgroup\$
    – DMGregory
    Jan 14, 2019 at 15:17

0

You must log in to answer this question.

Browse other questions tagged .