gouraud_light_instanced.fs 273 B

1234567891011121314
  1. #version 140
  2. uniform vec4 uniform_color;
  3. uniform float emission_factor;
  4. // x = tainted, y = specular;
  5. in vec2 intensity;
  6. out vec4 out_color;
  7. void main()
  8. {
  9. out_color = vec4(vec3(intensity.y) + uniform_color.rgb * (intensity.x + emission_factor), uniform_color.a);
  10. }