Advertisement
Guest User

Untitled

a guest
Mar 16th, 2022
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None
  1. void main() {
  2. vec2 startCoord = TexCoord;
  3. vec2 dif = startCoord - 0.5;
  4. dif *= 0.001;
  5. vec4 finalColor = vec4(0.0, 0.0, 0.0, 1.0);
  6. for (int i = 0; i < blurSize; i++) {
  7. vec2 newCoord = (startCoord + (dif * i));
  8. finalColor += texture(InputTexture, newCoord) * (1.0 / float(blurSize));
  9. }
  10. FragColor = finalColor;
  11. }
Advertisement
RAW Paste Data Copied
Advertisement