Commits

Cliff Biffle committed af5edc2

Tri-strip rendering's discontinuity detection is now scaled with Z.

Comments (0)

Files changed (1)

KVTriStripRenderer.m

         GLfloat deltaZ = fabsf(d - lastDepth);
         lastDepth = d;
         
-        if (d == 0.F || deltaZ > 0.4F) {
+        if (d == 0.F || deltaZ > 0.05F * d) {
           // Hole in the data or depth discontinuity.
           if (inStrip) {
             glEnd();