//yellow line
// ---- Created with 3Dmigoto v1.2.39 on Tue Jun 21 08:32:48 2016

cbuffer _Globals : register(b0)
{
  float4x4 ScreenToWorldMatrix : packoffset(c0);
  bool bDecompressSceneColor : packoffset(c4);
  float4 mvp[2] : packoffset(c5);
}



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


void main( 
  float4 v0 : COLOR0,
  float4 v1 : COLOR1,
  float4 v2 : POSITION0,
  out float4 o0 : COLOR0,
  out float4 o1 : COLOR1,
  out float4 o2 : SV_Position0)
{
  o0.xyzw = v0.xyzw;
  o1.xyzw = v1.xyzw;
  o2.x = dot(v2.xyzw, mvp[0].xyzw);
  o2.y = dot(v2.xyzw, mvp[1].xyzw);
  o2.zw = float2(0,1);

float4 r0 = o2;
float4 stereo = StereoParams.Load(0);

  if(stereo.y > 85){
o2.x += stereo.x * 0.31;}

  if(stereo.y <= 85 && stereo.y > 55){
o2.x += stereo.x * 0.51;}

  if(stereo.y <= 55 && stereo.y > 25){
o2.x += stereo.x * 0.66;}

  if(stereo.y <= 25){
o2.x += stereo.x * 0.4;}

float4 iniParams = IniParams.Load(0);
if (iniParams.w == 1){
o2 = r0;}

  return;
}