//TAA part 2. Object motion blur.
// ---- Created with 3Dmigoto v1.3.16 on Tue Jan 11 14:00:37 2022

cbuffer fblock : register(b0)
{
  float4 genericparm0 : packoffset(c0);
}



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


void main(
  float4 v0 : TEXCOORD0,
  float4 v1 : TEXCOORD1,
  float4 v2 : SV_Position0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  
  v0.x-=stereo.x*stereo.y;
  v1.x-=stereo.x*stereo.y;
  
  r0.xy = v1.xy / v1.ww;
  r0.xy = r0.xy * float2(0.5,0.5) + float2(0.5,0.5);
  r0.z = 1 + -r0.y;
  r0.yw = v0.xy / v0.ww;
  r1.xy = r0.yw * float2(0.5,0.5) + float2(0.5,0.5);
  r1.z = 1 + -r1.y;
  r0.xy = r1.xz + -r0.xz;
  o0.xy = genericparm0.xx * r0.xy;
  o0.zw = float2(0,1);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Tue Jan 11 14:00:37 2022
//
//
// Buffer Definitions:
//
// cbuffer fblock
// {
//
//   float4 genericparm0;               // Offset:    0 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// fblock                            cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xyzw        0     NONE   float   xy w
// TEXCOORD                 1   xyzw        1     NONE   float   xy w
// SV_Position              0   xyzw        2      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[1], immediateIndexed
dcl_input_ps linear v0.xyw
dcl_input_ps linear v1.xyw
dcl_output o0.xyzw
dcl_temps 2
div r0.xy, v1.xyxx, v1.wwww
mad r0.xy, r0.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
add r0.z, -r0.y, l(1.000000)
div r0.yw, v0.xxxy, v0.wwww
mad r1.xy, r0.ywyy, l(0.500000, 0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
add r1.z, -r1.y, l(1.000000)
add r0.xy, -r0.xzxx, r1.xzxx
mul o0.xy, r0.xyxx, cb0[0].xxxx
mov o0.zw, l(0,0,0,1.000000)
ret
// Approximately 10 instruction slots used

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