//Haloing on Character
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4x4 Projection;
//   float4x4 View;
//   float4 g_StencilPosScale;
//   float4x4 invview;
//
//
// Registers:
//
//   Name              Reg   Size
//   ----------------- ----- ----
//   View              c0       4
//   Projection        c4       4
//   invview           c8       3
//   g_StencilPosScale c11      1
//

    vs_3_0
    dcl_position v0  // IN<0,1,2>
    dcl_position o0
    dcl_texcoord o1
    dcl_texcoord1 o2.xyz
def c220, 1, 0, 0.0625, 0.5
dcl_2d s0

#line 1035 "pp_def_omni.cgfx"
    mad r0.xyz, v0, c11.w, c11  // ::worldPosition<0,1,2>
    mul r1, r0.y, c1
    mad r1, c0, r0.x, r1
    mad r0, c2, r0.z, r1
    add r0, r0, c3  // ::cameraSpace<0,1,2,3>
    mul r1, r0.y, c5
    mad r1, c4, r0.x, r1
    mad r1, c6, r0.z, r1
    mad r0, c7, r0.w, r1  // ::OUT<0,1,2,3>

mov r10, r0
texldl r24, c220.z, s0
add r24.y, r0.w, -r24.y
mul r24.x, r24.x, r24.y
add r0.x, r0.x, r24.x

#line 1043
    mad r1.xy, c6, r0.w, r0

#line 1040
    rcp r2.x, c4.x  // ::invProjMul<0>
    rcp r2.y, c5.y  // ::invProjMul<1>

#line 1043
    mul r1.xy, r1, r2  // ::viewDirCamSpace<0,1>

#line 1046
    mul r1.yzw, -r1.y, c9.xxyz
    mad r1.xyz, c8, -r1.x, r1.yzww
    mad o2.xyz, c10, r0.w, r1  // ::mainVPStencilOmniLight<8,9,10>

#line 1037
    mov o0, r10 //r0  // ::mainVPStencilOmniLight<0,1,2,3>
    mov o1, r0  // ::mainVPStencilOmniLight<4,5,6,7>

// approximately 18 instruction slots used
 