//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float3 AzimuthColor;
//   float3 AzimuthColorEast;
//   float AzimuthHeight;
//   float AzimuthStrength;
//   float CloudShadowOffset;
//   float4 CloudThicknessEdgeSmoothDetailScaleStrength;
//   float2 DetailOffset;
//   float2 GalaxyOffset;
//   float3 SkyColor;
//   float StarFieldUVRepeat;
//   float4 SunDirection;
//   float4 TopCloudBiasDetailThresholdHeight;
//   row_major float4x4 gWorld;
//   row_major float4x4 gWorldView;
//
//
// Registers:
//
//   Name                                        Reg   Size
//   ------------------------------------------- ----- ----
//   gWorld                                      c0       4
//   gWorldView                                  c4       4
//   SunDirection                                c64      1
//   SkyColor                                    c65      1
//   AzimuthColor                                c66      1
//   AzimuthColorEast                            c67      1
//   AzimuthHeight                               c68      1
//   TopCloudBiasDetailThresholdHeight           c69      1
//   CloudShadowOffset                           c70      1
//   AzimuthStrength                             c71      1
//   CloudThicknessEdgeSmoothDetailScaleStrength c72      1
//   StarFieldUVRepeat                           c73      1
//   GalaxyOffset                                c74      1
//   DetailOffset                                c75      1
//

    vs_3_0
    def c230, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.9138266109e-42 // 2793
    def c8, 512, 1, 1.5, 0.5
    def c9, -2, 3.14159274, 1.57079637, 0.317732662
    def c10, -0.0187292993, 0.0742610022, -0.212114394, 1.57072878
    def c11, 0.100000001, 2, -1, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_position o0
    dcl_texcoord o1.xyz
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3
    dcl_texcoord3 o4
    dcl_texcoord4 o5.xyz
    dcl_texcoord5 o6.xyz
    mul r0.xyz, c1, v0.y
    mad r0.xyz, v0.x, c0, r0
    mad r0.xyz, v0.z, c2, r0
    mad r0.xyz, v0.w, c3, r0
    add r0.xyz, r0, -c3
    dp3 r0.w, r0, r0
    rsq r0.w, r0.w
    mul r1.xyz, r0.w, r0
    mad r2.xy, r0.xzzw, -r0.w, c64.xzzw
    mov o2.xyz, r0
    mad r1.w, r1.y, c8.z, c8.w
    dp3 r0.x, r1.xzww, r1.xzww
    rsq r0.x, r0.x
    mul r0.xy, r0.x, r1.xzzw
    mad r0.zw, r0_abs.xyxy, c10.x, c10.y
    mad r0.zw, r0, r0_abs.xyxy, c10.z
    mad r0.zw, r0, r0_abs.xyxy, c10.w
    add r1.zw, -r0_abs.xyxy, c8.y
    slt r0.xy, r0, -r0
    rsq r1.z, r1.z
    rsq r1.w, r1.w
    rcp r1.w, r1.w
    rcp r1.z, r1.z
    mul r0.zw, r0, r1
    mad r1.z, r0.z, c9.x, c9.y
    mad r0.x, r1.z, r0.x, r0.z
    add r0.x, -r0.x, c9.z
    mov r1.w, c9.w
    mad r2.z, r0.x, r1.w, c74.x
    mad r0.x, r0.w, c9.x, c9.y
    mad r0.x, r0.x, r0.y, r0.w
    add r0.x, -r0.x, c9.z
    mad r2.w, r0.x, r1.w, c74.y
    add r0.xy, r2.zwzw, c8.w
    mul o4.xy, r0, c73.x
    mov o4.zw, r0.xyxy
    mov r0.x, c11.x
    mul r0.x, r0.x, c70.x
    mul r0.xy, r2, r0.x
    mad r0.zw, v1.xyxy, c11.y, c11.z
    mul r0.zw, r0, r0
    add r0.z, r0.w, r0.z
    add r0.z, -r0.z, c8.y
    mad o3.xy, r0, r0.z, v1
    add r0.xy, -c8.w, v1
    mul r0.zw, r0.xyxy, r0.xyxy
    add r0.z, r0.w, r0.z
    rsq r0.w, r0.z
    mul r1.zw, r0.w, r0.xyxy
    sge r0.w, -r0.z, r0.z
    mad r1.zw, r0.w, -r1, r1
    mul r0.zw, r0.z, r1
    mov r1.z, c72.z
    mad o3.zw, r0, r1.z, c75.xyxy
    mul r0.zw, r0.xyxy, c69.w
    mov r1.w, c8.w
    mad o5.xy, r0, c69.w, r1.w
    mul r0.xy, r0.zwzw, r0.zwzw
    add r0.x, r0.y, r0.x
    rsq r0.x, r0.x
    rcp r0.x, r0.x
    add o5.z, -r0.x, c8.y
    mul r0.xyz, c5, v0.y
    mad r0.xyz, v0.x, c4, r0
    mad r0.xyz, v0.z, c6, r0
    add r0.xyz, r0, c7
    add r0.w, r0.z, c8.x
    dp3 r0.w, r0.xyww, r0.xyww
    rsq r0.w, r0.w
    rcp r1.z, r0.w
    add r1.w, r1.z, c8.y
    rcp r1.w, r1.w
    add r2.z, -r1.w, c8.y
    mad o1.z, r2.z, -c8.y, c8.y
    mul_sat r1.y, r1.y, c68.x
    mad r1.x, r1.x, c8.w, c8.w
    add r1.y, -r1.y, c8.y
    mul r1.y, r1.y, c71.x
    mov r3.xyz, c67
    add r3.xyz, -r3, c66
    mad r3.xyz, r1.x, r3, c67
    mad o6.xyz, r3, r1.y, c65
    add r0.z, r0.z, c8.x
    mad r0.z, r0.z, -r0.w, c8.y
    mul r0.z, r0.z, r1.z
    rcp r0.z, r0.z
    mul r2.xy, r0.z, r0
    mul r0.xyz, r2, c8.zzyw
    mov o0.xyz, r0
    mov o0.w, c8.y
    mov o1.xy, v1

// approximately 91 instruction slots used
