declare const _default: "// Hejl 2015, \"ToneMapFilmic_Hejl2015\"\n// Purpose: This function applies a \"film-like\" tonemap to supplied\n// HDR pixel. This curve does not approximate gamma2.2, so an explicit sRGB transform should be performed before display.\n// Parameters:\n// vec3 hdr (IN) -- HDR pixel in linear space\n// float whitePt (IN) -- Scene white point. Must be > 0.0\n// Returns: Tonemapped pixel, white point corrected, in gamma 1.0 space\n// 08-18-15 v1 Jim Hejl\nvec3 hejl(vec3 hdr, float whitePt) {\n vec4 vh = vec4(hdr, whitePt); // pack: [r,g,b,w]\n vec4 va = (1.425 * vh) + 0.05; // eval filmic curve\n vec4 vf = ((vh * va + 0.004) / ((vh * (va + 0.55) + 0.0491))) - 0.0821;\n // The curve is negative below ~0.0046 linear, so the documented whitePt > 0.0\n // is understated: at the root vf.w is 0 and the correction blows up, below it\n // the whole result flips sign. max() keeps black at black for the input side.\n return max(vec3(0.0), vf.rgb / vf.www); // white point correction\n}\n\nvec3 hejl(vec3 hdr) {\n const float W = 11.2; // scene white point, as uncharted2\n return hejl(hdr, W);\n}\n\n"; export default _default;