//sun and sky
// ---- Created with 3Dmigoto v1.3.16 on Sat May 06 23:55:46 2023
cbuffer cb0 : register(b0)
{
  float4 cb0[68];
}




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


void main(
  float2 v0 : ATTRIBUTE0,
  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 = v0.xy * cb0[67].xy + cb0[67].wz;
  r0.xyzw = cb0[57].xyzw * v0.yyyy;
  r0.xyzw = v0.xxxx * cb0[56].xyzw + r0.xyzw;
  o1.xyzw = cb0[58].xyzw + r0.xyzw;
o1.x += stereo.x * (o1.w - stereo.y);  
  o2.xy = v0.xy;
  o2.zw = float2(0,1); 
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sat May 06 23:55:46 2023
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xy          0     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 cb0[68], immediateIndexed
dcl_input v0.xy
dcl_output o0.xy
dcl_output o1.xyzw
dcl_output_siv o2.xyzw, position
dcl_temps 1
mad o0.xy, v0.xyxx, cb0[67].xyxx, cb0[67].wzww
mul r0.xyzw, v0.yyyy, cb0[57].xyzw
mad r0.xyzw, v0.xxxx, cb0[56].xyzw, r0.xyzw
add o1.xyzw, r0.xyzw, cb0[58].xyzw
mov o2.xy, v0.xyxx
mov o2.zw, l(0,0,0,1.000000)
ret
// Approximately 0 instruction slots used

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