[Solved!] Shadow raycast polygon fail (Help!)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: [Solved!] Shadow raycast polygon fail (Help!)

Post by raidho36 »

Polygons are rendered as triangle fans. Hence it has to be convex (there's no guarantee that concave fan won't intersect itself) and simple (edges can't intersect) - if you draw a regular polygon with it. If you use it to draw a triangle fan, then regular triangle fan rendering rules apply - it simply shouldn't bend inwards or outwards on the corners beyond 90 degrees.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 6 guests