Hi,
I'm trying to color loops (polygons drawn with GL.QUADS) and it's only working when the loop has 4 points.
Here's a screenshot :
View attachment 111704
When there are 4 points, the loops is fully colored, but when there are more than 4 points, only one part of the loop is colored.
Here's the function I've written :
Coloring polygons using GL.QUADS
I'm trying to color loops (polygons drawn with GL.QUADS) and it's only working when the loop has 4 points.
Here's a screenshot :
View attachment 111704
When there are 4 points, the loops is fully colored, but when there are more than 4 points, only one part of the loop is colored.
Here's the function I've written :
Code (CSharp):
- public void ColorLoop(Loop l){
- // Color loop if closed, bool canColor is true and loops is not inversed
- if (l.isClosed() &&...