You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
979 B

  1. #version 330
  2. in vec2 fragTexCoord;
  3. out vec4 fragColor;
  4. uniform sampler2D texture0;
  5. uniform vec4 fragTintColor;
  6. // NOTE: Add here your custom variables
  7. void main()
  8. {
  9. vec4 color = texture(texture0, fragTexCoord);
  10. color += texture(texture0, fragTexCoord + 0.001);
  11. color += texture(texture0, fragTexCoord + 0.003);
  12. color += texture(texture0, fragTexCoord + 0.005);
  13. color += texture(texture0, fragTexCoord + 0.007);
  14. color += texture(texture0, fragTexCoord + 0.009);
  15. color += texture(texture0, fragTexCoord + 0.011);
  16. color += texture(texture0, fragTexCoord - 0.001);
  17. color += texture(texture0, fragTexCoord - 0.003);
  18. color += texture(texture0, fragTexCoord - 0.005);
  19. color += texture(texture0, fragTexCoord - 0.007);
  20. color += texture(texture0, fragTexCoord - 0.009);
  21. color += texture(texture0, fragTexCoord - 0.011);
  22. color.rgb = vec3((color.r + color.g + color.b)/3.0);
  23. color = color/9.5;
  24. fragColor = color;
  25. }