//HUD VS 15. Daytime circle.
// ---- Created with 3Dmigoto v1.3.16 on Sat Dec 17 13:41:19 2022

cbuffer Constants : register(b0)
{
  float4 vfuniforms[48] : packoffset(c0);
}



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


void main(
  float4 v0 : SV_Position0,
  uint v1 : COLOR1,
  out float4 o0 : SV_Position0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  float4 iniparams3 = IniParams.Load(int2(3,0));
  float4 iniparams10 = IniParams.Load(int2(10,0));
  
  r0.x = (uint)v1.x << 1;
  r0.x = (uint)r0.x;
  r0.xy = float2(0.100000001,1.10000002) + r0.xx;
  r0.xy = (uint2)r0.xy;
  o0.x = dot(v0.xyzw, vfuniforms[r0.x].xyzw);
  o0.y = dot(v0.xyzw, vfuniforms[r0.y].xyzw);
  o0.zw = float2(0,1);
  if (iniparams3.w!=10) {
    o0.x+=stereo.x*iniparams10.x;
  }
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v1.3.16 on Sat Dec 17 13:41:19 2022
//
//
// Buffer Definitions:
//
// cbuffer Constants
// {
//
//   float4 vfuniforms[48];             // Offset:    0 Size:   768
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// Constants                         cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0     NONE   float   xyzw
// COLOR                    1   x           1     NONE    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[48], dynamicIndexed
dcl_input v0.xyzw
dcl_input v1.x
dcl_output_siv o0.xyzw, position
dcl_temps 1
ishl r0.x, v1.x, l(1)
utof r0.x, r0.x
add r0.xy, r0.xxxx, l(0.100000, 1.100000, 0.000000, 0.000000)
ftou r0.xy, r0.xyxx
dp4 o0.x, v0.xyzw, cb0[r0.x + 0].xyzw
dp4 o0.y, v0.xyzw, cb0[r0.y + 0].xyzw
mov o0.zw, l(0,0,0,1.000000)
ret
// Approximately 8 instruction slots used

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