Warning, /plasma/kwin/src/plugins/blur/shaders/downsample.frag is written in an unsupported language. File is not indexed.
0001 uniform sampler2D texUnit; 0002 uniform float offset; 0003 uniform vec2 halfpixel; 0004 0005 varying vec2 uv; 0006 0007 void main(void) 0008 { 0009 vec4 sum = texture2D(texUnit, uv) * 4.0; 0010 sum += texture2D(texUnit, uv - halfpixel.xy * offset); 0011 sum += texture2D(texUnit, uv + halfpixel.xy * offset); 0012 sum += texture2D(texUnit, uv + vec2(halfpixel.x, -halfpixel.y) * offset); 0013 sum += texture2D(texUnit, uv - vec2(halfpixel.x, -halfpixel.y) * offset); 0014 0015 gl_FragColor = sum / 8.0; 0016 }