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 aeHistogram: array;\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 aeMarkers: vec4f;\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 fn debugAutoexposure() -> vec3f {\n // the pixel sampled, flipped like the composition samples the scene\n let uv = vec2f(uv0.x, mix(uv0.y, 1.0 - uv0.y, uniform.composeTargetFlipY));\n var color = toneMap(max(vec3f(0.0), textureSampleLevel(sceneTexture, sceneTextureSampler, uv, 0.0).rgb));\n\n // the panel along the bottom of the image, its vertical position growing upwards on\n // every platform\n let panel = (getImageEffectUV(uv) - vec2f(0.05, 0.04)) / vec2f(0.9, 0.22);\n if (all(panel >= vec2f(0.0)) && all(panel <= vec2f(1.0))) {\n let bin = i32(panel.x * 63.0 + 0.5);\n let height = uniform.aeHistogram[bin / 4][bin % 4];\n let included = panel.x >= uniform.aeMarkers.x && panel.x <= uniform.aeMarkers.y;\n color = select(color * 0.15, select(vec3f(0.3), vec3f(0.85), included), panel.y <= height);\n\n // the markers, two pixels wide\n let halfWidth = uniform.sceneTextureSize.z / 0.9;\n if (abs(panel.x - uniform.aeMarkers.z) < halfWidth) {\n color = vec3f(1.0, 0.75, 0.1);\n }\n if (abs(panel.x - uniform.aeMarkers.w) < halfWidth) {\n color = vec3f(0.2, 0.7, 1.0);\n }\n }\n return color;\n }\n #endif\n"; export default _default;