//CGVER3.4
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
//
//   fxc /T vs_2_a /Zpr /DCGC=0 /Fc $$out.cg $$in.cg
//
//
// Parameters:
//
//   float3 $Fog;
//   row_major float4x4 $ModelViewProj;
//   float4 $g_VSCONST_0_025_05_1;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

    vs_2_x
    def c4, 0, 1, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord1 v2
    dcl_texcoord2 v3
    dcl_texcoord3 v4
    dcl_color v5
    max r0.w, v0.z, c4.x
    mad r0.w, r0.w, v4.z, v4.w
    mul r0.w, r0.w, r0.w
    mad r0.w, r0.w, r0.w, -v4.w
    mov r0.xy, v0
    mad r1.xy, v4, r0.w, r0
    dp3 r0.w, v0, v0
    mov r1.z, v0.z
    rsq r0.w, r0.w
    nrm r0.xyz, r1
    rcp r0.w, r0.w
    mul r1.xyz, r0, r0.w
    mul r2.xyz, v2.w, c0
    mad r0, v2.xyzx, c4.yyyx, c4.xxxy
    dp4 r2.w, r0, c0
    mov r1.w, v0.w
    dp4 oPos.x, r2, r1
    mul r2.xyz, v2.w, c1
    dp4 r2.w, r0, c1
    dp4 oPos.y, r2, r1
    mov r2.xyz, v5
    mul oD0.xyz, r2, v3
    dp4 r2.w, r0, c2
    mul r2.xyz, v2.w, c2
    dp4 r0.w, r0, c3
    dp4 r2.z, r2, r1
    mad r2.w, c29.x, -r2.z, c29.y
    mul r0.xyz, v2.w, c3
    max r2.y, r2.w, c28.x
    dp4 r2.w, r0, r1
    min oFog, r2.y, c28.w
    mov oPos.zw, r2
    mov oT0.xy, v1
    mov oD0.w, v3.w

// approximately 36 instruction slots used
