Warning, /plasma/kwin/src/plugins/blur/shaders/upsample_core.frag is written in an unsupported language. File is not indexed.

0001 #version 140
0002 
0003 uniform sampler2D texUnit;
0004 uniform float offset;
0005 uniform vec2 halfpixel;
0006 
0007 in vec2 uv;
0008 
0009 out vec4 fragColor;
0010 
0011 void main(void)
0012 {
0013     vec4 sum = texture(texUnit, uv + vec2(-halfpixel.x * 2.0, 0.0) * offset);
0014     sum += texture(texUnit, uv + vec2(-halfpixel.x, halfpixel.y) * offset) * 2.0;
0015     sum += texture(texUnit, uv + vec2(0.0, halfpixel.y * 2.0) * offset);
0016     sum += texture(texUnit, uv + vec2(halfpixel.x, halfpixel.y) * offset) * 2.0;
0017     sum += texture(texUnit, uv + vec2(halfpixel.x * 2.0, 0.0) * offset);
0018     sum += texture(texUnit, uv + vec2(halfpixel.x, -halfpixel.y) * offset) * 2.0;
0019     sum += texture(texUnit, uv + vec2(0.0, -halfpixel.y * 2.0) * offset);
0020     sum += texture(texUnit, uv + vec2(-halfpixel.x, -halfpixel.y) * offset) * 2.0;
0021 
0022     fragColor = sum / 12.0;
0023 }