//lights
// ---- Created with 3Dmigoto v1.3.16 on Tue Mar 31 00:13:34 2026
cbuffer cb1 : register(b1)
{
  float4 cb1[3];
}

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




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


void main(
  float4 v0 : ATTRIBUTE0,
  float2 v1 : ATTRIBUTE1,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : TEXCOORD0,
  out float3 o2 : TEXCOORD1)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
float4 stereo = StereoParams.Load(0);
float4 params = IniParams.Load(0);
  o0.zw = float2(0,1);
  r0.xy = v0.xy * cb1[0].xy + cb1[0].zw;
  r0.xy = cb1[2].xy * r0.xy;
  r0.xy = r0.xy * float2(2,2) + float2(-1,-1);
  r0.xy = float2(1,-1) * r0.xy;
  o0.xy = r0.xy;
o0.x += stereo.x;  
  r0.zw = v1.xy * cb1[1].xy + cb1[1].zw;
  o1.xy = cb1[2].zw * r0.zw;
  o1.zw = r0.xy;
  
  r0.yzw = cb0[53].xyz * r0.yyy;
  r0.xyz = r0.xxx * cb0[52].xyz + r0.yzw;
  o2.xyz = cb0[54].xyz + r0.xyz;
//o2 = 0.6;  
  
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Tue Mar 31 00:13:34 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xy
// ATTRIBUTE                1   xy          1     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyz         2     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[55], immediateIndexed
dcl_constantbuffer cb1[3], immediateIndexed
dcl_input v0.xy
dcl_input v1.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
dcl_temps 1
mov o0.zw, l(0,0,0,1.000000)
mad r0.xy, v0.xyxx, cb1[0].xyxx, cb1[0].zwzz
mul r0.xy, r0.xyxx, cb1[2].xyxx
mad r0.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000)
mov o0.xy, r0.xyxx
mad r0.zw, v1.xxxy, cb1[1].xxxy, cb1[1].zzzw
mul o1.xy, r0.zwzz, cb1[2].zwzz
mov o1.zw, r0.xxxy
mul r0.yzw, r0.yyyy, cb0[53].xxyz
mad r0.xyz, r0.xxxx, cb0[52].xyzx, r0.yzwy
add o2.xyz, r0.xyzx, cb0[54].xyzx
ret
// Approximately 0 instruction slots used

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