How dynamically draw shape by coords?

Hello! Im trying create something like fog of war with character vision. I think i need create texture or mask with specific shape that changes dynamically. I have coord of this shape vertices, but what i need to use to draw it? I can’t find anything. I need to draw shape like this (orange line):

Or there is more proper way to create this?

So, i solved this just with drawing multiple triangles between player point and 2 adjacent points in line tracing results
Something like this: