declare const _default: "\n // the debug view, declared only while a debug view is displayed\n #ifdef COMPOSE_EFFECT_DEBUG\n\n // the latest histogram, four bins per element, each relative to the largest bin\n uniform vec4 aeHistogram[16];\n\n // x, y: the darkest and the brightest brightness the average includes, z: the average, w: the\n // brightness the camera exposes as middle gray - each as a position along the histogram, 0-1\n uniform vec4 aeMarkers;\n\n // the 'autoexposure' debug view: the scene at the exposure the camera renders with, without\n // the other effects, with the histogram of its brightness drawn along the bottom - the bins\n // the average includes bright, the average in yellow and the brightness the camera exposes\n // as middle gray in blue, which meet once the exposure has adapted\n vec3 debugAutoexposure() {\n // the pixel sampled, flipped like the composition samples the scene\n vec2 uv = vec2(uv0.x, mix(uv0.y, 1.0 - uv0.y, composeTargetFlipY));\n vec3 color = toneMap(max(vec3(0.0), texture2DLod(sceneTexture, uv, 0.0).rgb));\n\n // the panel along the bottom of the image, its vertical position growing upwards on\n // every platform\n vec2 panel = (getImageEffectUV(uv) - vec2(0.05, 0.04)) / vec2(0.9, 0.22);\n if (all(greaterThanEqual(panel, vec2(0.0))) && all(lessThanEqual(panel, vec2(1.0)))) {\n int bin = int(panel.x * 63.0 + 0.5);\n float height = aeHistogram[bin / 4][bin - (bin / 4) * 4];\n bool included = panel.x >= aeMarkers.x && panel.x <= aeMarkers.y;\n color = panel.y <= height ? (included ? vec3(0.85) : vec3(0.3)) : color * 0.15;\n\n // the markers, two pixels wide\n float halfWidth = sceneTextureSize.z / 0.9;\n if (abs(panel.x - aeMarkers.z) < halfWidth) color = vec3(1.0, 0.75, 0.1);\n if (abs(panel.x - aeMarkers.w) < halfWidth) color = vec3(0.2, 0.7, 1.0);\n }\n return color;\n }\n #endif\n"; export default _default;