//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 $BaseTexGen0;
//   float4 $BaseTexGen1;
//   float4 $Bend;
//   float4 $DecalAtten;
//   float3 $Fog;
//   row_major float4x4 $ModelViewProj;
//   float4 $g_VSCONST_0_025_05_1;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $BaseTexGen0          c4       1
//   $BaseTexGen1          c5       1
//   $DecalAtten           c6       1
//   $Bend                 c7       1
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//

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

// approximately 48 instruction slots used
