//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:
//
//   float4 $AttenInfo;
//   float4 $CameraPos;
//   float4 $EnvColors[6];
//   float3 $Fog;
//   row_major float4x4 $LightMatrix;
//   float4 $LightPos;
//   row_major float4x4 $ModelViewProj;
//   row_major float4x4 $TexMatrix;
//   float4 $g_VSCONST_0_025_05_1;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $LightPos             c4       1
//   $CameraPos            c5       1
//   $AttenInfo            c6       1
//   $TexMatrix            c7       3
//   $LightMatrix          c10      4
//   $EnvColors            c14      6
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

    vs_2_x
    def c20, 0, 1, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord2 v2
    dcl_texcoord3 v3
    dcl_blendweight v4
    dp4 oPos.x, c0, v0
    dp4 oPos.y, c1, v0
    dp4 oT4.x, c10, v0
    dp4 oT4.y, c11, v0
    dp4 oT4.z, c12, v0
    add r0.xyz, -v0, c5
    dp4 oT4.w, c13, v0
    dp3 r4.x, v2, r0
    dp3 r4.y, v3, r0
    dp3 r4.z, v4, r0
    dp3 r0.w, r4, r4
    add r1.xyz, -v0, c4
    rsq r0.w, r0.w
    dp3 r0.x, v2, r1
    dp3 r0.y, v3, r1
    dp3 r0.z, v4, r1
    nrm r5.xyz, r0
    dp3 r1.x, c7, v4
    dp3 r1.y, c8, v4
    dp3 r1.z, c9, v4
    slt r2.xyz, -r1, r1
    slt r3.xyz, r1, -r1
    add r3.xyz, r2, -r3
    mul r2.xyz, r1, r1
    mad oT3.xyz, r4, r0.w, r5
    mul r7.xyz, r3, r2
    sge r6.xyz, c20.x, r1
    mul r1, -r7.x, c15
    mul r4, r6.x, r1
    mul r1, r7.x, c14
    add r5.xyz, -r6, c20.y
    mul r2, -r7.y, c17
    mul r3, r6.y, r2
    mul r2, r7.y, c16
    mad r1, r1, r5.x, r4
    mad r2, r2, r5.y, r3
    add r1, r1, r2
    mul r3, -r7.z, c19
    mul r2, r7.z, c18
    mul r3, r6.z, r3
    mad r2, r2, r5.z, r3
    dp4 r3.z, c2, v0
    add r1, r1, r2
    mad r0.w, c29.x, -r3.z, c29.y
    add oD1, r1, r1
    max r0.w, r0.w, c28.x
    min oFog, r0.w, c28.w
    dp4 r3.w, c3, v0
    mov oPos.zw, r3
    mul r1, v1.xyxx, c20.yyxx
    mov oT0, r1
    mov r0.w, c20.x
    mov oT1, r1
    mov oT2, r0
    mov oT3.w, c20.x
    mul r0.w, c6.z, c6.y
    mad r0.xyz, r0, r0.w, c6.z
    mov r0.w, c20.x
    mov oT5, r0
    mov oD0, r0

// approximately 62 instruction slots used
