Does order of points in a triangle matter?

I’m trying to solve a pernicious, difficult bug.

My code is splitting up triangles that are too big into smaller ones. Each triangle is split into four. Unfortunately some of the triangles that result appear gray instead of white. I’m using the two-sided triangle lighting model.

I’m beginning to notice however that when I change the order of the points within each triangle, I can get some of them to return to the normal white color. Why might this be the case?

Thanks.

I’m using the two-sided triangle lighting model.

Front and back sides of triangles are determined by the order you submit the vertices in. If you change the order of the vertices, then you change which side is front and which side is back.

Yeah, it’s the so-called triangle (polygon) winding.