declare const _default: "\n varying uv0: vec2f;\n\n uniform dynSkyInvView: mat4x4f;\n uniform dynSkyProjScale: vec2f;\n uniform dynSkyRotation: mat3x3f;\n\n #ifdef DYNSKY_CLOUDS_ENCODED\n uniform dynSkyCloudScale: f32;\n #endif\n\n #include \"dynamicSkyAtmospherePS\"\n #include \"dynamicSkyCloudsPS\"\n\n @fragment\n fn fragmentMain(input: FragmentInput) -> FragmentOutput {\n var output: FragmentOutput;\n\n // uv0 addresses textures (getImageEffectUV flips it on WebGPU), so undo the flip to get NDC\n let ndcUV = vec2f(input.uv0.x, 1.0 - input.uv0.y);\n let ndc = ndcUV * 2.0 - 1.0;\n let world = normalize((uniform.dynSkyInvView * vec4f(ndc * uniform.dynSkyProjScale, -1.0, 0.0)).xyz);\n\n var dir = world * uniform.dynSkyRotation;\n dir.x = dir.x * -1.0;\n\n var clouds = dynamicSkyCloudsVolumetric(dir, dynamicSkyAmbient(dir));\n #ifdef DYNSKY_CLOUDS_ENCODED\n let light = clouds.rgb / uniform.dynSkyCloudScale;\n clouds = vec4f(light / (vec3f(1.0) + light), clouds.a);\n #endif\n output.color = clouds;\n return output;\n }\n"; export default _default;