//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;
//   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
//   $EnvColors            c7       6
//   $TexMatrix            c13      3
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

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

// approximately 57 instruction slots used
