// ---- Created with 3Dmigoto v1.3.7 on Wed Nov 06 10:30:28 2019
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb0 : register(b0)
{
  float4 cb0[21];
}




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


void main(
  float4 v0 : SV_Position0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  out float4 o0 : SV_Target0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
    float4 params = IniParams.Load(0);
  if (params.x == 0)
  {
    o0 = 0;                                    
    return;
  } else {

  r0.xyzw = t0.Sample(s0_s, v1.xy, int2(0, 0)).xyzw;
  r0.x = dot(r0.xyz, float3(0.300000012,0.589999974,0.109999999));
  r0.y = cb0[20].y * r0.w;
  r0.x = saturate(r0.x * cb0[20].x + r0.y);
  r0.xyz = v2.xyz * r0.xxx;
  o0.xyz = v2.www * r0.xyz;
  o0.w = cb0[20].z * v2.w;
  return;
  }
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.7 on Wed Nov 06 10:30:28 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
//
//
// 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 cb0[21], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xyzw
dcl_output o0.xyzw
dcl_temps 1
sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t0.xyzw, s0
dp3 r0.x, r0.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mul r0.y, r0.w, cb0[20].y
mad_sat r0.x, r0.x, cb0[20].x, r0.y
mul r0.xyz, r0.xxxx, v2.xyzx
mul o0.xyz, r0.xyzx, v2.wwww
mul o0.w, v2.w, cb0[20].z
ret
// Approximately 0 instruction slots used

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