gouraud_light_clip.fs 373 B

12345678910111213141516171819
  1. #version 100
  2. precision highp float;
  3. uniform vec4 uniform_color;
  4. uniform float emission_factor;
  5. // x = tainted, y = specular;
  6. varying vec2 intensity;
  7. varying float clipping_planes_dot;
  8. void main()
  9. {
  10. if (clipping_planes_dot < 0.0)
  11. discard;
  12. gl_FragColor = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
  13. }