spookey1.glsl 296 B

123456789101112131415161718192021222324
  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 blue = 0.0;
  9. if (c0.r < 0.35 || c0.b > 0.5)
  10. {
  11. red = c0.g + c0.b;
  12. }
  13. else
  14. {
  15. red = c0.g + c0.b;
  16. blue = c0.r + c0.b;
  17. }
  18. ocol0 = vec4(red, 0.0, blue, 1.0);
  19. }