// lego lotr heat haze
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   float4 g_FadePlaneEq;
//   float4 vs_fog_params;
//   float4 vs_fog_params2;
//   float4 vs_fog_params3;
//   float4 vs_fog_params4;
//   float4 vs_projection_params;
//   row_major float4x4 vs_view;
//   row_major float4x4 vs_viewProj;
//   float4 vs_viewportScaleBias;
//   float4 vs_worldCamPos;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   vs_viewProj          c0       4
//   vs_view              c4       4
//   vs_worldCamPos       c8       1
//   vs_projection_params c9       1
//   vs_fog_params        c44      1
//   vs_fog_params2       c45      1
//   vs_fog_params3       c46      1
//   vs_fog_params4       c47      1
//   vs_viewportScaleBias c82      1
//   g_FadePlaneEq        c178     1
//

    vs_3_0
    def c10, 1, 3, 0.5, -0.5
    def c11, 1, 0, 0, 0
def c220, 0,0,0.0625,0
dcl_2d s0
    dcl_position v0
    dcl_texcoord v1
    dcl_color v2
    dcl_position o0
    dcl_color o1
    dcl_texcoord o2
    dcl_color1 o3
    dcl_texcoord1 o4
    dcl_texcoord2 o5
    rcp r0.x, v1_abs.z
    mul o5, r0.x, c178
    mul r0.xyz, c5, v0.y
    mad r0.xyz, v0.x, c4, r0
    mad r0.xyz, v0.z, c6, r0
    mad r0.xyz, v0.w, c7, r0
    dp3 r0.w, r0, r0
    rsq r0.w, r0.w
    mul r0.xyz, r0, r0.w
    rcp r0.w, r0.w
    dp3_sat r0.x, -c46, r0
    mul r0.x, r0.x, r0.x
    mul r0.x, r0.x, r0.x
    mul r0.x, r0.x, c10.y
    mov r1.xyz, c47
    mad r0.xyz, r0.x, r1, c45
    mul r0.xyz, r0, c44
    rcp r1.x, c47.w
    mul_sat r1.x, r0.w, r1.x
    mul r1.x, r1.x, c47.w
    mul r1.x, r1.x, c46.w
    add r1.y, -c8.y, v0.y
    mul r1.z, -r1.y, c44.w
    rcp r1.y, r1.y
    exp r1.z, r1.z
    add r1.z, -r1.z, c10.x
    mul r1.z, r1.z, c45.w
    mul r1.y, r1.y, r1.z
    mad r0.w, r0.w, r1.y, r1.x
    exp r0.w, -r0.w
    min r0.w, r0.w, c10.x
    add r1.x, -r0.w, c10.x
    mov o3.w, r0.w
    mul o3.xyz, r0, r1.x
    mul r0, c1, v0.y
    mad r0, v0.x, c0, r0
    mad r0, v0.z, c2, r0
    mad r0, v0.w, c3, r0
	
mov r10, r0
texldl r24, c220.z, s0
add r24.y, r0.w, -r24.y
mul r24.x, r24.x, r24.y
add r0.x, r0.x, r24.x

    rcp r1.x, r0.w
    mul r1.xy, r0, r1.x

    mov o0, r10 //r0

    mad r0.xy, r1, c10.zwzw, c10.z
    mad o4.xy, r0, c82.zwzw, c82
    mov o1, v2
    mov o2.xy, v1
    mov o2.zw, c9.xyxw
    mul o4.zw, c11.xyxy, v1.z

// approximately 47 instruction slots used
 