//Out of water distortion VS.
// ---- Created with 3Dmigoto v1.3.16 on Fri Dec 16 00:36:18 2022
cbuffer cb1 : register(b1)
{
  float4 cb1[43];
}




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


void main(
  float3 v0 : POSITION0,
  float4 v1 : COLOR0,
  float4 v2 : TEXCOORD0,
  float4 v3 : TEXCOORD1,
  float2 v4 : TEXCOORD2,
  out float4 o0 : TEXCOORD0,
  out float4 o1 : TEXCOORD1,
  out float4 o2 : SV_Position0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  
  o0.xy = v4.xy;
  o1.xyzw = v1.xyzw;
  r0.x = v3.y * v2.y;
  r0.x = v2.x * v3.x + -r0.x;
  r0.y = dot(v2.yx, v3.xy);
  v0.x+=stereo.x;
  r0.yz = r0.yy * float2(1,0) + v0.xy;
  o2.xy = r0.xx * float2(0,1) + r0.yz;
  o2.z = 1 + -cb1[42].x;
  o2.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Fri Dec 16 00:36:18 2022
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xy
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyz         2     NONE   float   xy
// TEXCOORD                 1   xy          3     NONE   float   xy
// TEXCOORD                 2   xy          4     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// TEXCOORD                 1   xyzw        1     NONE   float   xyzw
// SV_Position              0   xyzw        2      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB1[43], immediateIndexed
dcl_input v0.xy
dcl_input v1.xyzw
dcl_input v2.xy
dcl_input v3.xy
dcl_input v4.xy
dcl_output o0.xy
dcl_output o1.xyzw
dcl_output_siv o2.xyzw, position
dcl_temps 1
mov o0.xy, v4.xyxx
mov o1.xyzw, v1.xyzw
mul r0.x, v2.y, v3.y
mad r0.x, v2.x, v3.x, -r0.x
dp2 r0.y, v2.yxyy, v3.xyxx
mad r0.yz, r0.yyyy, l(0.000000, 1.000000, 0.000000, 0.000000), v0.xxyx
mad o2.xy, r0.xxxx, l(0.000000, 1.000000, 0.000000, 0.000000), r0.yzyy
add o2.z, -cb1[42].x, l(1.000000)
mov o2.w, l(1.000000)
ret
// Approximately 0 instruction slots used

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