//Clouds, Sky
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float fSkyTime;
//   float4x4 g_projection;
//   float4x4 g_projectionInverse;
//   float4 g_texCoordScaleBias;
//   float4 g_uvScrolling;
//   float4x4 g_view;
//
//
// Registers:
//
//   Name                Reg   Size
//   ------------------- ----- ----
//   g_projection        c0       4
//   g_projectionInverse c4       4
//   g_view              c8       3
//   g_uvScrolling       c11      1
//   g_texCoordScaleBias c12      1
//   fSkyTime            c13      1
//
//
// Default values:
//
//   g_projection
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   g_projectionInverse
//     c4   = { 0, 0, 0, 0 };
//     c5   = { 0, 0, 0, 0 };
//     c6   = { 0, 0, 0, 0 };
//     c7   = { 0, 0, 0, 0 };
//
//   g_view
//     c8   = { 0, 0, 0, 0 };
//     c9   = { 0, 0, 0, 0 };
//     c10  = { 0, 0, 0, 0 };
//
//   g_uvScrolling
//     c11  = { 0, 0, 0, 0 };
//
//   g_texCoordScaleBias
//     c12  = { 0, 0, 0, 0 };
//
//   fSkyTime
//     c13  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c14, 1, -1, 0.0404499993, 0.0549999997
    def c15, 0.947867274, 2.4000001, 0.0773993805, 0
def c220, 2, 0.001, 0.0625, 0
dcl_2d s3
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_position o0
    dcl_color o1
    dcl_texcoord o2
    dcl_texcoord1 o3
    dcl_texcoord2 o4.xy
    dcl_texcoord3 o5.xyz
    dp3 r0.x, v0, c8
    dp3 r0.y, v0, c9
    dp3 r0.z, v0, c10
    mov r0.w, c14.x
    dp4 r1.x, r0, c0
    dp4 r1.y, r0, c1
    dp4 r1.z, r0, c3
	
    dp4 r0.x, r1.xyzz, c7
    rcp r0.x, r0.x
    dp4 r2.x, r1.xyzz, c4
    dp4 r2.y, r1.xyzz, c5
    dp4 r2.z, r1.xyzz, c6

	
mov r10.xyz, r1.xyz
texldl r24, c220.z, s3
mul r24.x, r24.x, r24.y //c220.x
add r10.x, r10.x, r24.x						//affects outside sky

    mov o0, r10.xyzz
    mul o5.xyz, r0.x, r2
    mov r0, c11
    mul r0, r0, c13.x
    mul r1.xy, c12, v2
	
mov r10.xy, r1.xy
texldl r24, c220.z, s3
mul r24.x, r24.x, -r24.y
mul r24.x, r24.x, c220.y
add r10.x, r10.x, r24.x

    mad o2, r10.xyxy, c14.xxyy, r0.xyxy     	//affect sky in opening (inside) level
    mad o3, r10.xyxy, c14.xxyy, r0.zwzw
    mov o4.xy, r10
    add r0.xyz, c14.w, v1
    mul r0.xyz, r0_abs, c15.x
    log r1.x, r0.x
    log r1.y, r0.y
    log r1.z, r0.z
    mul r0.xyz, r1, c15.y
    exp r1.x, r0.x
    exp r1.y, r0.y
    exp r1.z, r0.z
    mad r0.xyz, v1, c15.z, -r1
    sge r2.xyz, c14.z, v1
    mad o1.xyz, r2, r0, r1
    mov o1.w, v1.w

// approximately 33 instruction slots used
 