// Lens flares

// ---- Created with 3Dmigoto v1.2.31 on Wed Mar 02 19:43:36 2016

cbuffer CLightEffectParameterProvider : register(b0)
{
  float4 ScreenParams : packoffset(c0);
  float4 VisibilityParams : packoffset(c1);
  float EmissiveEV : packoffset(c2);
}



// 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 : TEXCOORD0,
  out float2 o2 : TEXCOORD1)
{
  o0.xyzw = v0.xyzw;
  o1.xyz = EmissiveEV * v1.xyz;
  o1.w = v1.w;
  o2.xy = v2.xy;

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

  return;
}
