//hud & ui- mission debriefing screen
// ---- Created with 3Dmigoto v1.2.67 on Sat Dec 02 14:38:51 2017
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb13 : register(b13)
{
  float4 cb13[5];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float4 v0 : TEXCOORD6,
  float4 v1 : TEXCOORD0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyzw = t0.SampleLevel(s0_s, v1.xy, 0).xyzw;
  r1.x = cmp(0 < cb13[3].x);
  if (r1.x != 0) {
    r1.x = cb13[3].x + 0.5;
    r2.zw = r1.xx * cb13[3].yz + v1.xy;
    r1.y = t0.SampleLevel(s0_s, r2.zw, 0).w;
    r2.xy = -r1.xx * cb13[3].yz + v1.xy;
    r1.x = t0.SampleLevel(s0_s, r2.xw, 0).w;
    r1.x = r1.y + r1.x;
    r1.y = t0.SampleLevel(s0_s, r2.zy, 0).w;
    r1.x = r1.x + r1.y;
    r1.y = t0.SampleLevel(s0_s, r2.xy, 0).w;
    r1.x = r1.x + r1.y;
    r1.x = saturate(cb13[3].w * r1.x);
    r1.x = max(r1.x, r0.w);
    r0.xyz = r0.www * r0.xyz;
    r0.w = r1.x;
  }
  r0.xyz = cb13[4].xxx * r0.xyz;
  r0.xyzw = v0.xyzw * r0.xyzw;
  o0.xyz = r0.xyz * r0.www;
  o0.w = r0.w;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.67 on Sat Dec 02 14:38:51 2017
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 6   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb13[5], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v0.xyzw
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_temps 3
sample_l_indexable(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t0.xyzw, s0, l(0.000000)
lt r1.x, l(0.000000), cb13[3].x
if_nz r1.x
  add r1.x, l(0.500000), cb13[3].x
  mad r2.zw, r1.xxxx, cb13[3].yyyz, v1.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.zwzz, t0.xwyz, s0, l(0.000000)
  mad r2.xy, -r1.xxxx, cb13[3].yzyy, v1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r1.x, r2.xwxx, t0.wxyz, s0, l(0.000000)
  add r1.x, r1.x, r1.y
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.zyzz, t0.xwyz, s0, l(0.000000)
  add r1.x, r1.y, r1.x
  sample_l_indexable(texture2d)(float,float,float,float) r1.y, r2.xyxx, t0.xwyz, s0, l(0.000000)
  add r1.x, r1.y, r1.x
  mul_sat r1.x, r1.x, cb13[3].w
  max r1.x, r0.w, r1.x
  mul r0.xyz, r0.xyzx, r0.wwww
  mov r0.w, r1.x
endif 
mul r0.xyz, r0.xyzx, cb13[4].xxxx
mul r0.xyzw, r0.xyzw, v0.xyzw
mul o0.xyz, r0.wwww, r0.xyzx
mov o0.w, r0.w
ret 
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
