toxic.glsl 344 B

1234567891011121314151617181920212223242526
  1. uniform sampler2D samp9;
  2. out vec4 ocol0;
  3. in vec2 uv0;
  4. void main()
  5. {
  6. vec4 c0 = texture(samp9, uv0);
  7. float red = 0.0;
  8. float green = 0.0;
  9. float blue = 0.0;
  10. if (c0.r < 0.3 || c0.b > 0.5)
  11. {
  12. blue = c0.r + c0.b;
  13. red = c0.g + c0.b / 2;
  14. }
  15. else
  16. {
  17. red = c0.g + c0.b;
  18. green = c0.r + c0.b;
  19. }
  20. ocol0 = vec4(red, green, blue, 1.0);
  21. }