//Virtua Fighter VS 2.
// ---- Created with 3Dmigoto v1.3.16 on Sun May 12 13:38:56 2019
cbuffer cb2 : register(b2)
{
  float4 cb2[12];
}




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


void main(
  float4 v0 : POSITION0,
  float2 v1 : TEXCOORD0,
  out float2 o0 : TEXCOORD0,
  out float4 o1 : SV_POSITION0)
{
  float4 stereo = StereoParams.Load(0);
  float4 iniparams = IniParams.Load(0);
  float4 iniparams3 = IniParams.Load(int2(3,0));
  float4 iniparams5 = IniParams.Load(int2(5,0));
  
  o0.xy = v1.xy;
  o1.x = dot(cb2[8].xyzw, v0.xyzw);
  o1.y = dot(cb2[9].xyzw, v0.xyzw);
  o1.z = dot(cb2[10].xyzw, v0.xyzw);
  o1.w = dot(cb2[11].xyzw, v0.xyzw);
  if (iniparams5.x==1)
  {
	o1.x=o1.x*iniparams5.z;
	o1.y=o1.y*iniparams5.w;
	if (iniparams3.w!=1)
	{
	  o1.x+=stereo.x*(o1.w-stereo.y*o1.z);
	}
	else
	{
	  o1.x+=stereo.x*o1.w*iniparams.x;
	}
  }
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 12 13:38:56 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
//
//
// 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_constantbuffer cb2[12], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xy
dcl_output o0.xy
dcl_output_siv o1.xyzw, position
mov o0.xy, v1.xyxx
dp4 o1.x, cb2[8].xyzw, v0.xyzw
dp4 o1.y, cb2[9].xyzw, v0.xyzw
dp4 o1.z, cb2[10].xyzw, v0.xyzw
dp4 o1.w, cb2[11].xyzw, v0.xyzw
ret
// Approximately 0 instruction slots used

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