declare const _default: "\n\nvec4 getShadowOutput() {\n\n // rasterized depth\n float depth = gl_FragCoord.z;\n\n #if SHADOW_TYPE == VSM_16F || SHADOW_TYPE == VSM_32F\n\n // Rasterization of degenerate triangles, which animated meshes can generate, can supply\n // depth outside of the [0, 1] range or even NaN. The exponential warp below turns those\n // into huge values, which the VSM blur then spreads over a large area, generating visible\n // artifacts. Note that the depth range is not clipped for other shadow types, as they\n // either store the depth using the depth buffer, which clamps it, or the error is limited\n // to the individual texels and so is not noticeable.\n if (!(depth >= 0.0 && depth <= 1.0)) discard;\n\n // exponential warp of the depth, stored with its square\n #if SHADOW_TYPE == VSM_32F\n float exponent = 15.0;\n #else\n float exponent = 5.54;\n #endif\n depth = 2.0 * depth - 1.0;\n depth = exp(exponent * depth);\n return vec4(depth, depth * depth, 1.0, 1.0);\n\n #elif SHADOW_TYPE == PCSS_32F\n\n // depth is stored in R32F texture\n return vec4(depth, 0.0, 0.0, 1.0);\n\n #else\n\n // depth is stored in the depth buffer by the rasterizer, color is not used\n return vec4(1.0);\n\n #endif\n}\n"; export default _default;