flat_clip.fs 238 B

123456789101112131415
  1. #version 110
  2. const vec3 ZERO = vec3(0.0, 0.0, 0.0);
  3. uniform vec4 uniform_color;
  4. varying vec3 clipping_planes_dots;
  5. void main()
  6. {
  7. if (any(lessThan(clipping_planes_dots, ZERO)))
  8. discard;
  9. gl_FragColor = uniform_color;
  10. }