 {
   if (cutPositionCount == 3)
   {
-    justEmit(matrix * cutPositions[0], vec4(1, 0, 0, 0.8));
-    justEmit(matrix * cutPositions[1], vec4(1, 0, 0, 0.8));
-    justEmit(matrix * cutPositions[2], vec4(1, 0, 0, 0.8));
+    justEmit(matrix, cutPositions[0]);
+    justEmit(matrix, cutPositions[1]);
+    justEmit(matrix, cutPositions[2]);
     return;
   }
 

    isFirst = false;
  }

  justEmit(pos, color);
  ++emittedVertexCount;

  if (emittedVertexCount == 3)

  cutPositions[cutPositionCount++] = cutPositions[0];
  for (int i = 0; i < cutPositionCount - 1; ++i)
  {
    justEmit(matrix, center);
    justEmit(matrix, cutPositions[i]);
    justEmit(matrix, cutPositions[i + 1]);
    EndPrimitive();
  }
}
