spookey2.glsl 341 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.35 || c0.b > 0.5)
  11. {
  12. red = c0.g + c0.b;
  13. }
  14. else
  15. {
  16. red = c0.g + c0.b;
  17. blue = c0.r + c0.b;
  18. green = c0.r + c0.b;
  19. }
  20. ocol0 = vec4(red, green, blue, 1.0);
  21. }