Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Coloring polygons using GL.QUADS

$
0
0
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 :

Code (CSharp):
  1. public void ColorLoop(Loop l){
  2.         // Color loop if closed, bool canColor is true and loops is not inversed
  3.         if (l.isClosed() &&...
Coloring polygons using GL.QUADS

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>