declare const _default: "\n varying vec2 uv0;\n\n uniform mat4 dynSkyInvView;\n uniform vec2 dynSkyProjScale;\n uniform mat3 dynSkyRotation; // the rotation of the sky, see skyboxVS\n\n #ifdef DYNSKY_CLOUDS_ENCODED\n uniform float dynSkyCloudScale;\n #endif\n\n #include \"dynamicSkyAtmospherePS\"\n #include \"dynamicSkyCloudsPS\"\n\n void main(void) {\n\n // the world space direction of the texel (perspective projection). uv0 addresses\n // textures (getImageEffectUV flips it on WebGPU), so undo the flip to get NDC\n vec2 ndcUV = uv0;\n #ifdef WEBGPU\n ndcUV.y = 1.0 - ndcUV.y;\n #endif\n vec2 ndc = ndcUV * 2.0 - 1.0;\n vec3 world = normalize((dynSkyInvView * vec4(ndc * dynSkyProjScale, -1.0, 0.0)).xyz);\n\n // to the sky space, as the sky's vertex shader and its fragment shader derive it\n vec3 dir = world * dynSkyRotation;\n dir.x *= -1.0;\n\n vec4 clouds = dynamicSkyCloudsVolumetric(dir, dynamicSkyAmbient(dir));\n #ifdef DYNSKY_CLOUDS_ENCODED\n vec3 light = clouds.rgb / dynSkyCloudScale;\n clouds.rgb = light / (1.0 + light);\n #endif\n gl_FragColor = clouds;\n }\n"; export default _default;