//HUD VS. Other smoke effects, like Fox shooting.
// ---- Created with 3Dmigoto v0.6.163 on Wed May 13 22:14:51 2026



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


void main(
  float4 v0 : POSITION0,
  float2 v1 : TEXCOORD0,
  float4 v2 : INPUT0,
  out float4 o0 : SV_POSITION0,
  out float2 o1 : TEXCOORD0,
  out float4 o2 : INPUT0)
{
  float4 stereo = StereoParams.Load(0);
  float4 iniparams10 = IniParams.Load(int2(10,0));
  float4 iniparams11 = IniParams.Load(int2(11,0));
  
  o0.xyzw = v0.xyzw;
  o1.xy = v1.xy;
  o2.xyzw = v2.xyzw;
  
  if (o0.w==1 && v0.z!=0) {
    //o0.x+=stereo.x*(o0.w-stereo.y*0.000125/v0.z);
    o0.x+=stereo.x*(o0.w-stereo.y*(1-v0.z)*0.0005)*0.9375;
  } else if (o0.w==1 && v0.z==0 && iniparams11.x==0) {
    o0.x+=stereo.x*o0.w*iniparams10.x*0.9375;
	if (iniparams10.y==0) {
	  o0.xyzw = 0;
	}
  }
  
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.163 on Wed May 13 22:14:51 2026
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// INPUT                    0   xyzw        2     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// INPUT                    0   xyzw        2     NONE   float   xyzw
//
vs_4_0
dcl_input v0.xyzw
dcl_input v1.xy
dcl_input v2.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyzw
mov o0.xyzw, v0.xyzw
mov o1.xy, v1.xyxx
mov o2.xyzw, v2.xyzw
ret
// Approximately 4 instruction slots used

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