declare const _default: "\n uniform sampler2D aeMeterTexture;\n\n // how much the metering favors the center of the screen, 0-1\n uniform float aeCenterWeight;\n\n void main() {\n ivec2 fragment = ivec2(gl_FragCoord.xy);\n int row = fragment.y;\n vec4 bins = vec4(fragment.x * 4) + vec4(0.0, 1.0, 2.0, 3.0);\n\n // the metering weight of the texels of the row, by their distance to the center\n float v = (float(row) + 0.5) / float({AE_METER_HEIGHT}) - 0.5;\n\n uvec4 counts = uvec4(0u);\n for (int x = 0; x < {AE_METER_WIDTH}; x++) {\n vec2 bytes = floor(texelFetch(aeMeterTexture, ivec2(x, row), 0).rg * 255.0 + 0.5);\n float position = (bytes.r * 256.0 + bytes.g) / 65535.0 * float({AE_BINS} - 1);\n float u = (float(x) + 0.5) / float({AE_METER_WIDTH}) - 0.5;\n float weight = mix(1.0, exp(-8.0 * (u * u + v * v)), aeCenterWeight);\n vec4 share = max(vec4(0.0), 1.0 - abs(bins - position)) * weight;\n counts += uvec4(share * 65536.0 + 0.5);\n }\n\n gl_FragColor = counts;\n }\n"; export default _default;