export declare const ambientEnhancementVertexShader = "\n precision highp float;\n attribute vec2 position;\n varying vec2 vUV;\n void main(void) {\n vUV = (position + 1.0) * 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n }\n"; export declare const ambientEnhancementFragmentShader = "\n precision highp float;\n\n varying vec2 vUV;\n uniform sampler2D textureSampler;\n uniform sampler2D depthSampler;\n uniform sampler2D normalSampler;\n\n uniform vec3 ambientColor;\n uniform float ambientStrength;\n uniform vec3 mainLightDirection;\n uniform float exposure;\n uniform float skyOcclusionStrength;\n\n void main() {\n // Get the base scene color.\n vec4 baseColor = texture2D(textureSampler, vUV);\n\n // Fetch and normalize the normal.\n vec3 normal = texture2D(normalSampler, vUV).xyz * 2.0 - 1.0;\n normal = normalize(normal);\n\n // Fetch depth.\n float depth = texture2D(depthSampler, vUV).r;\n if (depth >= 0.99999) {\n gl_FragColor = baseColor;\n return;\n }\n\n // Calculate ambient enhancement based on sky occlusion.\n float skyFactor = normal.y * 0.5 + 0.5;\n float skyOcclusion = skyFactor * skyOcclusionStrength + (1.0 - skyOcclusionStrength);\n vec3 enhancedAmbient = ambientColor * ambientStrength * skyOcclusion;\n\n // Calculate how much the surface faces the main light.\n float lightFacing = max(0.0, -dot(normal, mainLightDirection));\n\n // Combine base color with ambient enhancement.\n vec3 finalColor = baseColor.rgb * (1.0 + enhancedAmbient * (1.0 - lightFacing));\n\n // Apply exposure.\n finalColor = finalColor * exposure;\n\n // ---- Vibrancy Enhancement ----\n // Boost saturation: mix with the grayscale version.\n float luminance = dot(finalColor, vec3(0.299, 0.587, 0.114));\n vec3 gray = vec3(luminance);\n finalColor = mix(gray, finalColor, 1.5); // 1.5 = saturation boost factor\n\n // Increase overall brightness.\n finalColor = finalColor * 1.1; // 1.1 = brightness multiplier\n // --------------------------------\n\n gl_FragColor = vec4(clamp(finalColor, 0.0, 1.0), baseColor.a);\n }\n"; //# sourceMappingURL=ambientEnhancement.d.cts.map