// make plane partially transparent in ext. view when fix applied
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 g_vKSettings;
//
//
// Registers:
//
//   Name         Reg   Size
//   ------------ ----- ----
//   g_vKSettings c0       1
//
//
// Default values:
//
//   g_vKSettings
//     c0   = { 0, 0, 0, 0 };
//

    // preshader
    // add r0.x, c0.x, (-0.5)
    // cmp ob0.x, r0.x, (0), (1)

// approximately 2 instructions used
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D AlphaSampler;
//   sampler2D DiffuseSampler;
//   float4x4 g_mPrevObjViewProj;
//   float4x4 g_mViewProj;
//   float4 g_vKSettings;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   g_mPrevObjViewProj c0       4
//   g_mViewProj        c4       4
//   g_vKSettings       c8       1
//   AlphaSampler       s0       1
//   DiffuseSampler     s1       1
//
//
// Default values:
//
//   g_mPrevObjViewProj
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   g_mViewProj
//     c4   = { 0, 0, 0, 0 };
//     c5   = { 0, 0, 0, 0 };
//     c6   = { 0, 0, 0, 0 };
//     c7   = { 0, 0, 0, 0 };
//
//   g_vKSettings
//     c8   = { 0, 0, 0, 0 };
//

    ps_3_0
    def c9, 0, 1, 0.5, 0.300000012
    dcl_texcoord v0.xy
    dcl_texcoord2 v1.w
    dcl_texcoord3 v2.w
    dcl_texcoord4 v3.w
    dcl_texcoord7 v4
    dcl_2d s0
    dcl_2d s1
    texld r0, v0, s1
    mad r0.xy, r0.w, c9, c9.zxzw
    texld r0, r0, s0
    nrm r1.xyz, v4
    mad oC0.xyz, r1, c9.z, c9.z
    mul oC0.w, r0.z, c9.z
    if b0
      mov r0.xy, c9.x
    else
      mov r1.y, v2.w
      mov r1.z, v3.w
      mad r1.xw, v1.w, c9.yyzx, c9.xyzy
      dp4 r0.w, r1, c3
      rcp r0.w, r0.w
      dp4 r2.x, r1, c0
      dp4 r2.y, r1, c1
      mul r2.xy, r0.w, r2
      dp4 r0.w, r1, c7
      rcp r0.w, r0.w
      dp4 r3.x, r1, c4
      dp4 r3.y, r1, c5
      mad r0.xz, r3.xyyw, r0.w, -r2.xyyw
      mul r0.y, -r0.z, c8.y
      dp2add r0.z, r0, r0, c9.x
      rsq r0.z, r0.z
      rcp r0.w, r0.z
      if_lt c9.w, r0.w
        mul r0.z, r0.z, c9.w
        mul r0.xy, r0.z, r0
      endif
    endif
    mov oC2.xy, r0
    mov oC1.x, v4.w
    mov oC1.yzw, c9.x
    mov oC2.zw, c9.x
	
// desactivate oC0 regarding value of c221.z (const3)
mov r5.z, c221.z
if_ne r5.z, c9.x
mov oC0.xyzw, c9.xxxx
endif	