flat_clip.fs 262 B

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