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

object_outline_resolve_frag.glsl « shaders « modes « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 964ebe72e81a879b0fac0b1e3480761ea979c5b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

in vec4 uvcoordsvar;

out vec4 FragColor;

uniform sampler2D outlineBluredColor;
uniform vec2 rcpDimensions;

void main()
{
#ifdef USE_FXAA
    float aa_alpha = FxaaPixelShader(
        uvcoordsvar.st,
        outlineBluredColor,
        rcpDimensions,
        1.0,
        0.166,
        0.0833
    ).r;
#endif

    FragColor = texture(outlineBluredColor, uvcoordsvar.st).rgba;

#ifdef USE_FXAA
    FragColor.a = aa_alpha;
#endif
}