//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;
//   float3 $Fog;
//   row_major float4x4 $ModelViewProj;
//   float3 $ScaleBumpTex;
//   float4 $SunDirect;
//   float3 $Tangent;
//   float4 $TexGen0;
//   float4 $TexGen1;
//   float4 $g_VSCONST_0_025_05_1;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $SunDirect            c4       1
//   $CameraPos            c5       1
//   $Tangent              c6       1
//   $ScaleBumpTex         c7       1
//   $TexGen0              c8       1
//   $TexGen1              c9       1
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

    vs_1_1
    def c10, 0, 0, 0, 0
    dcl_position v0
    dcl_normal v1
    mul r0.xyz, v1.yzxw, c6.zxyw
    mad r0.xyz, c6.yzxw, v1.zxyw, -r0
    dp4 oPos.x, c0, v0
    dp3 r1.x, r0, r0
    dp4 oPos.y, c1, v0
    rsq r0.w, r1.x
    dp4 r4.x, c8, v0
    mul r2.xyz, r0, r0.w
    dp4 r4.y, c9, v0
    mul r0.xyz, r2.zxyw, v1.yzxw
    mad r0.xyz, r2.yzxw, v1.zxyw, -r0
    add r3.xyz, -v0, c5
    mul oT1.xy, r4, c7
    dp3 r1.x, r0, r3
    dp3 r1.y, r2, r3
    dp3 r1.z, v1, r3
    mov oT0.xy, r4
    dp3 r3.x, r1, r1
    dp3 r0.x, r0, c4
    rsq r0.w, r3.x
    dp3 r0.y, r2, c4
    mul r1.xyz, r1, r0.w
    dp3 r0.z, v1, c4
    dp4 r2.z, c2, v0
    dp3 r2.x, r0, r0
    mad r0.w, c29.x, -r2.z, c29.y
    rsq r1.w, r2.x
    max r0.w, r0.w, c28.x
    mad oT3.xyz, r0, r1.w, r1
    min oFog, r0.w, c28.w
    dp4 r2.w, c3, v0
    mov r0.w, c10.x
    mov oPos.zw, r2
    mov oT2, r0
    mov oT3.w, c10.x
    mov oD0, c10.x

// approximately 36 instruction slots used
