//Object outline haloing.
// ---- Created with 3Dmigoto v1.3.16 on Tue May 14 20:16:34 2019
cbuffer cb12 : register(b12)
{
  float4 cb12[31];
}

cbuffer cb10 : register(b10)
{
  float4 cb10[3];
}




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


void main(
  float4 v0 : POSITION0,
  out float4 o0 : TEXCOORD1,
  out float3 o1 : TEXCOORD2,
  out float4 o2 : SV_POSITION0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  float4 stereo = StereoParams.Load(0);

  r0.w = 1;
  r1.xyz = v0.xyz;
  r1.w = 1;
  r0.x = dot(cb10[0].xyzw, r1.xyzw);
  r0.y = dot(cb10[1].xyzw, r1.xyzw);
  r0.z = dot(cb10[2].xyzw, r1.xyzw);
  o0.x = dot(cb12[4].xyzw, r0.xyzw);
  o0.y = dot(cb12[5].xyzw, r0.xyzw);
  o0.z = dot(cb12[6].xyzw, r0.xyzw);
  r0.xyz = -cb12[30].xyz + r0.xyz;
  r1.x = dot(cb12[4].xyz, r0.xyz);
  r1.y = dot(cb12[5].xyz, r0.xyz);
  r1.z = dot(cb12[6].xyz, r0.xyz);
  r1.w = 1;
  r0.x = dot(cb12[0].xyzw, r1.xyzw);
  r0.y = dot(cb12[1].xyzw, r1.xyzw);
  r0.w = dot(cb12[3].xyzw, r1.xyzw);
  o2.z = dot(cb12[2].xyzw, r1.xyzw);
  r1.xyz = float3(0.5,-0.5,0.5) * r0.xyw;
  o2.xyw = r0.xyw;
  o1.z = r0.w;
  o1.xy = r1.xy + r1.zz;
  o1.x+=stereo.x*(o1.z-stereo.y)*0.5;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Tue May 14 20:16:34 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 1   xyz         0     NONE   float   xyz
// TEXCOORD                 2   xyz         1     NONE   float   xyz
// SV_POSITION              0   xyzw        2      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb10[3], immediateIndexed
dcl_constantbuffer cb12[31], immediateIndexed
dcl_input v0.xyz
dcl_output o0.xyz
dcl_output o1.xyz
dcl_output_siv o2.xyzw, position
dcl_temps 2
mov r0.w, l(1.000000)
mov r1.xyz, v0.xyzx
mov r1.w, l(1.000000)
dp4 r0.x, cb10[0].xyzw, r1.xyzw
dp4 r0.y, cb10[1].xyzw, r1.xyzw
dp4 r0.z, cb10[2].xyzw, r1.xyzw
dp4 o0.x, cb12[4].xyzw, r0.xyzw
dp4 o0.y, cb12[5].xyzw, r0.xyzw
dp4 o0.z, cb12[6].xyzw, r0.xyzw
add r0.xyz, r0.xyzx, -cb12[30].xyzx
dp3 r1.x, cb12[4].xyzx, r0.xyzx
dp3 r1.y, cb12[5].xyzx, r0.xyzx
dp3 r1.z, cb12[6].xyzx, r0.xyzx
mov r1.w, l(1.000000)
dp4 r0.x, cb12[0].xyzw, r1.xyzw
dp4 r0.y, cb12[1].xyzw, r1.xyzw
dp4 r0.w, cb12[3].xyzw, r1.xyzw
dp4 o2.z, cb12[2].xyzw, r1.xyzw
mul r1.xyz, r0.xywx, l(0.500000, -0.500000, 0.500000, 0.000000)
mov o2.xyw, r0.xyxw
mov o1.z, r0.w
add o1.xy, r1.zzzz, r1.xyxx
ret
// Approximately 0 instruction slots used

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