Welcome to mirror list, hosted at ThFree Co, Russian Federation.

workbench_effect_fxaa_frag.glsl « shaders « workbench « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 092878e43aaa21eca4daa74330f91c105995419c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

in vec4 uvcoordsvar;

out vec4 FragColor;

uniform sampler2D colorBuffer;
uniform vec2 invertedViewportSize;

void main()
{
  ivec2 texel = ivec2(gl_FragCoord.xy);
  float alpha = texelFetch(colorBuffer, texel, 0).a;
  FragColor = FxaaPixelShader(
      uvcoordsvar.st, colorBuffer, invertedViewportSize, 1.0, 0.166, 0.0833);
  FragColor.a = alpha;
}