//CGVER3.4
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
//
//   fxc /T vs_1_1 /Zpr /DCGC=0 /Fc $$out.cg $$in.cg
//
//
// Parameters:
//
//   float4 $CameraPos;
//   float4 $FadingDist;
//   float3 $Fog;
//   float4 $Layer0TexGen0;
//   float4 $Layer0TexGen1;
//   float4 $Layer1TexGen0;
//   float4 $Layer1TexGen1;
//   float4 $Layer2TexGen0;
//   float4 $Layer2TexGen1;
//   row_major float4x4 $ModelViewProj;
//   float4 $g_VSCONST_0_025_05_1;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $Layer0TexGen0        c4       1
//   $CameraPos            c5       1
//   $Layer0TexGen1        c6       1
//   $Layer1TexGen0        c7       1
//   $Layer1TexGen1        c8       1
//   $Layer2TexGen0        c9       1
//   $Layer2TexGen1        c10      1
//   $FadingDist           c11      1
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

    vs_1_1
    def c12, 0.00100000005, 1, 0, 0
    dcl_position v0
    dcl_color1 v1
    dp4 oPos.x, c0, v0
    dp4 oPos.y, c1, v0
    dp4 oT0.x, c4, v0
    add r0.xyz, -v0, c5
    dp4 oT0.y, c6, v0
    dp3 r0.x, r0, r0
    rsq r0.w, r0.x
    mov r1.w, c12.x
    max r1.w, r1.w, c11.x
    rcp r0.w, r0.w
    rcp r1.w, r1.w
    dp4 oT1.x, c7, v0
    mul r0.w, r0.w, r1.w
    dp4 oT1.y, c8, v0
    min r0.w, r0.w, c12.y
    dp4 oT2.x, c9, v0
    mul r0.w, r0.w, r0.w
    dp4 oT2.y, c10, v0
    mul r0.w, r0.w, r0.w
    mul oD1.z, r0.w, v1.y
    dp4 r0.z, c2, v0
    mul oD0.zw, r0.w, v1.xyxz
    mad r0.w, c29.x, -r0.z, c29.y
    max r1.w, r0.w, c28.x
    dp4 r0.w, c3, v0
    min oFog, r1.w, c28.w
    mov oPos.zw, r0
    mov oD0.xy, c12.z
    mov oD1.xyw, c12.z

// approximately 29 instruction slots used
