flat_clip.fs 251 B

1234567891011121314151617
  1. #version 140
  2. const vec3 ZERO = vec3(0.0, 0.0, 0.0);
  3. uniform vec4 uniform_color;
  4. in vec3 clipping_planes_dots;
  5. out vec4 out_color;
  6. void main()
  7. {
  8. if (any(lessThan(clipping_planes_dots, ZERO)))
  9. discard;
  10. out_color = uniform_color;
  11. }