mm_contour.fs 333 B

1234567891011
  1. #version 110
  2. const float EPSILON = 0.0001;
  3. void main()
  4. {
  5. gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
  6. // Values inside depth buffer for fragments of the contour of a selected area are offset
  7. // by small epsilon to solve z-fighting between painted triangles and contour lines.
  8. gl_FragDepth = gl_FragCoord.z - EPSILON;
  9. }