//letterbox bars
// ---- Created with 3Dmigoto v1.3.2 on Sat Feb 20 20:39:41 2021
cbuffer cb2 : register(b2)
{
  float4 cb2[7];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[1];
}

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




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


void main(
  float4 v0 : TEXCOORD4,
  float4 v1 : TEXCOORD5,
  float3 v2 : TEXCOORD6,
  float4 v3 : SV_Position0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

float4 iniParams = IniParams.Load(0);
if(iniParams.w == 0){discard;}

  r0.xyz = -cb0[8].xyz + v2.xyz;
  r0.w = cb2[6].y * r0.y;
  r0.x = dot(r0.xyz, r0.xyz);
  r0.y = max(-127, r0.w);
  r0.y = min(127, r0.y);
  r0.z = exp2(-r0.y);
  r0.z = 1 + -r0.z;
  r0.z = r0.z / r0.y;
  r0.y = cmp(9.99999997e-007 < abs(r0.y));
  r0.z = cb2[6].z * r0.z;
  r0.y = r0.y ? r0.z : cb2[6].z;
  r0.z = rsqrt(r0.x);
  r0.x = r0.x * r0.z + -cb2[5].w;
  r0.x = max(0, r0.x);
  r0.x = -r0.y * r0.x;
  r0.x = exp2(r0.x);
  r0.x = max(cb2[6].x, r0.x);
  r0.xyz = r0.xxx * -cb2[5].xyz + cb2[5].xyz;
  r0.w = dot(r0.xyz, float3(0.300000012,0.589999974,0.109999999));
  r1.xyz = r0.www * cb1[0].xyz + -r0.xyz;
  r0.xyz = cb1[0].www * r1.xyz + r0.xyz;
  r0.xyz = cb0[6].xxx * r0.xyz;
  o0.xyz = min(float3(4,4,4), r0.xyz);
  o0.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.2 on Sat Feb 20 20:39:41 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 4   xyzw        0     NONE   float
// TEXCOORD                 5   xyzw        1     NONE   float
// TEXCOORD                 6   xyz         2     NONE   float   xyz
// SV_Position              0   xyzw        3      POS   float
//
//
// 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[9], immediateIndexed
dcl_constantbuffer cb1[1], immediateIndexed
dcl_constantbuffer cb2[7], immediateIndexed
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 2
add r0.xyz, v2.xyzx, -cb0[8].xyzx
mul r0.w, r0.y, cb2[6].y
dp3 r0.x, r0.xyzx, r0.xyzx
max r0.y, r0.w, l(-127.000000)
min r0.y, r0.y, l(127.000000)
exp r0.z, -r0.y
add r0.z, -r0.z, l(1.000000)
div r0.z, r0.z, r0.y
lt r0.y, l(0.000001), |r0.y|
mul r0.z, r0.z, cb2[6].z
movc r0.y, r0.y, r0.z, cb2[6].z
rsq r0.z, r0.x
mad r0.x, r0.x, r0.z, -cb2[5].w
max r0.x, r0.x, l(0.000000)
mul r0.x, r0.x, -r0.y
exp r0.x, r0.x
max r0.x, r0.x, cb2[6].x
mad r0.xyz, r0.xxxx, -cb2[5].xyzx, cb2[5].xyzx
dp3 r0.w, r0.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mad r1.xyz, r0.wwww, cb1[0].xyzx, -r0.xyzx
mad r0.xyz, cb1[0].wwww, r1.xyzx, r0.xyzx
mul r0.xyz, r0.xyzx, cb0[6].xxxx
min o0.xyz, r0.xyzx, l(4.000000, 4.000000, 4.000000, 0.000000)
mov o0.w, l(1.000000)
ret
// Approximately 0 instruction slots used

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