//HUD VS 2. Radar elements.
// ---- Created with 3Dmigoto v0.6.163 on Sun Sep 13 01:51:36 2026
cbuffer cb0 : register(b0)
{
  float4 cb0[10];
}




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


void main(
  float4 v0 : COLOR0,
  int4 v1 : POSITION0,
  int4 v2 : TEXCOORD0,
  float4 v3 : TEXCOORD1,
  float4 v4 : TEXCOORD2,
  float4 v5 : TEXCOORD3,
  float4 v6 : TEXCOORD4,
  float4 v7 : TEXCOORD5,
  float4 v8 : TEXCOORD7,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : COLOR0,
  out float2 o2 : TEXCOORD0,
  out float2 p2 : TEXCOORD2,
  out float4 o3 : TEXCOORD1)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  float4 iniparams3 = IniParams.Load(int2(3,0));
  float4 iniparams9 = IniParams.Load(int2(9,0));
  float4 iniparams10 = IniParams.Load(int2(10,0));
  float4 iniparams11 = IniParams.Load(int2(11,0));
  
  r0.xy = (int2)v1.xy;
  r0.xy = v3.xy * r0.xy;
  r0.yzw = v7.xyz * r0.yyy;
  r0.xyz = r0.xxx * v6.xyz + r0.yzw;
  o0.xyz = v8.xyz + r0.xyz;
  o0.w = 1;
  
  if (iniparams9.y==0) {
    o0.x+=stereo.x*iniparams10.x;
  }
  
  o1.xyzw = v4.xyzw * v0.wzyx;
  r0.xy = (int2)v2.xy;
  r0.xy = v3.zw * r0.xy;
  r0.zw = cb0[0].xx * r0.xy;
  p2.xy = r0.xy * cb0[8].xy + cb0[8].zw;
  o2.xy = r0.zw * cb0[9].xy + cb0[9].zw;
  o3.xyzw = v5.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.163 on Sun Sep 13 01:51:36 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// COLOR                    0   xyzw        0     NONE   float   xyzw
// POSITION                 0   xyzw        1     NONE     int   xy
// TEXCOORD                 0   xy          2     NONE     int   xy
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyzw        4     NONE   float   xyzw
// TEXCOORD                 3   xyzw        5     NONE   float   xyzw
// TEXCOORD                 4   xyzw        6     NONE   float   xyz
// TEXCOORD                 5   xyzw        7     NONE   float   xyz
// TEXCOORD                 7   xyzw        8     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy
// TEXCOORD                 2     zw        2     NONE   float     zw
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[10], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xy
dcl_input v2.xy
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_input v5.xyzw
dcl_input v6.xyz
dcl_input v7.xyz
dcl_input v8.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o2.zw
dcl_output o3.xyzw
dcl_temps 1
itof r0.xy, v1.xyxx
mul r0.xy, r0.xyxx, v3.xyxx
mul r0.yzw, r0.yyyy, v7.xxyz
mad r0.xyz, r0.xxxx, v6.xyzx, r0.yzwy
add o0.xyz, r0.xyzx, v8.xyzx
mov o0.w, l(1.000000)
mul o1.xyzw, v0.wzyx, v4.xyzw
itof r0.xy, v2.xyxx
mul r0.xy, r0.xyxx, v3.zwzz
mul r0.zw, r0.xxxy, cb0[0].xxxx
mad o2.zw, r0.xxxy, cb0[8].xxxy, cb0[8].zzzw
mad o2.xy, r0.zwzz, cb0[9].xyxx, cb0[9].zwzz
mov o3.xyzw, v5.xyzw
ret
// Approximately 0 instruction slots used

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