//bloom from boosters-- disabled in the PS
// ---- Created with 3Dmigoto v1.2.64 on Mon Oct 16 00:34:19 2017

cbuffer cbChangeOnResize : register(b0)
{
  float4x4 Projection : packoffset(c0);
  float2 vWindowSize : packoffset(c4);
  float2 ff1 : packoffset(c4.z);
}

cbuffer cbChangesEveryFrame : register(b1)
{
  float4x4 World : packoffset(c0);
  float4 vGUIColor : packoffset(c4);
}



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


void main( 
  float4 v0 : POSITION0,
  float4 v1 : COLOR0,
  float2 v2 : TEXCOORD0,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : COLOR0,
  out float2 o2 : TEXCOORD0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = dot(v0.xyzw, World._m01_m11_m21_m31);
  r0.x = vWindowSize.y + -r0.x;
  r0.x = r0.x + r0.x;
  r0.x = r0.x / vWindowSize.y;
  o0.y = -1 + r0.x;
  r0.x = dot(v0.xyzw, World._m00_m10_m20_m30);
  r0.x = r0.x + r0.x;
  r0.x = r0.x / vWindowSize.x;
  o0.x = -1 + r0.x;
  o0.zw = float2(0,1);
  o1.xyzw = vGUIColor.xyzw * v1.xyzw;
  o2.xy = v2.xy;

float4 stereo = StereoParams.Load(0);
//o0.x += stereo.x* stereo.y;
//o0 = 0;

  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.2.64 on Mon Oct 16 00:34:19 2017
//
//
// Buffer Definitions: 
//
// cbuffer cbChangeOnResize
// {
//
//   float4x4 Projection;               // Offset:    0 Size:    64 [unused]
//   float2 vWindowSize;                // Offset:   64 Size:     8
//   float2 ff1;                        // Offset:   72 Size:     8 [unused]
//
// }
//
// cbuffer cbChangesEveryFrame
// {
//
//   float4x4 World;                    // Offset:    0 Size:    64
//   float4 vGUIColor;                  // Offset:   64 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbChangeOnResize                  cbuffer      NA          NA    0        1
// cbChangesEveryFrame               cbuffer      NA          NA    1        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy  
//
//
// 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  
//
vs_4_0
dcl_constantbuffer cb0[5], immediateIndexed
dcl_constantbuffer cb1[5], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_temps 1
dp4 r0.x, v0.xyzw, cb1[1].xyzw
add r0.x, -r0.x, cb0[4].y
add r0.x, r0.x, r0.x
div r0.x, r0.x, cb0[4].y
add o0.y, r0.x, l(-1.000000)
dp4 r0.x, v0.xyzw, cb1[0].xyzw
add r0.x, r0.x, r0.x
div r0.x, r0.x, cb0[4].x
add o0.x, r0.x, l(-1.000000)
mov o0.zw, l(0,0,0,1.000000)
mul o1.xyzw, v1.xyzw, cb1[4].xyzw
mov o2.xy, v2.xyxx
ret 
// Approximately 13 instruction slots used

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