//intro cinematics
// ---- Created with 3Dmigoto v1.3.16 on Sun Aug 16 02:03:33 2020



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


void main(
  float2 v0 : TEXCOORD0,
  float4 v1 : POSITION0,
  out float2 o0 : TEXCOORD0,
  out float4 o1 : SV_POSITION0)
{
float4 r9,r10,r11;
  o0.xy = v0.xy;
  r10.xyzw = v1.xyzw;

float4 stereo = StereoParams.Load(0);
float4 iniParams = IniParams.Load(0);
float4 screens = IniParams.Load(int2(2, 0));

r9 = r10;
r11.x = 1 + abs(screens.y * 0.5 * 0.117);
if(r9.x < -0.997){
r10.x = r10.x * r11.x;
}
if(r9.x > 0.997){
r10.x = r10.x * r11.x;
}

if(screens.x == 2){
r10.x += stereo.x * screens.y * 0.5;
}

o1 = r10;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Sun Aug 16 02:03:33 2020
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// POSITION                 0   xyzw        1     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// SV_POSITION              0   xyzw        1      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_input v0.xy
dcl_input v1.xyzw
dcl_output o0.xy
dcl_output_siv o1.xyzw, position
mov o0.xy, v0.xyxx
mov o1.xyzw, v1.xyzw
ret
// Approximately 3 instruction slots used

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