// Flares
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 ScreenPos;
//   float4 Size;
//
//
// Registers:
//
//   Name         Reg   Size
//   ------------ ----- ----
//   Size         c0       1
//   ScreenPos    c1       1
//
//
// Default values:
//
//   Size
//     c0   = { 0, 0, 0, 0 };
//
//   ScreenPos
//     c1   = { 0, 0, 0, 0 };
//

    // preshader
    // mul c0.x, c0.y, c0.x
    // mov c1.xy, c1.zw

// approximately 2 instructions used
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 Rotation;
//   float4 ScreenPos;
//   float4 Size;
//   float4 TCoords;
//
//
// Registers:
//
//   Name         Reg   Size
//   ------------ ----- ----
//   Size         c2       1
//   Rotation     c3       1
//   ScreenPos    c4       1
//   TCoords      c5       1
//
//
// Default values:
//
//   Size
//     c2   = { 0, 0, 0, 0 };
//
//   Rotation
//     c3   = { 0, 0, 0, 0 };
//
//   ScreenPos
//     c4   = { 0, 0, 0, 0 };
//
//   TCoords
//     c5   = { 0, 0, 0, 0 };
//

      vs_3_0
    def c6, 1, 0, 0, 0
def c220, 0.9, 0, 0.0625, 0	
    dcl_position o10
dcl_texcoord o0.xy
dcl_color o8
dcl_position v0
dcl_2d s0	
    mul r0.xyz, v0.yxyw, c3.xxyw
    mad r0.x, v0.x, c3.y, -r0.x
    add r0.y, r0.z, r0.y
    mul r1.y, r0.y, c0.x
    mul r1.x, r0.x, c2.x
    // add o10.xy, r1, c4
 add r3.xy, r1, c4	
    min r0.x, v0.x, c6.x
    max r0.x, r0.x, c6.y
    mad o0.x, r0.x, c5.z, c5.x
    add r0.x, -v0.y, c6.x
    min r0.x, r0.x, c6.x
    max r0.x, r0.x, c6.y
    mad o0.y, r0.x, c5.w, c5.y
    // mov o10.zw, c1.xyxy
mov r3.zw, c1.xyxy	
    mov o8, c6.x
	
mov r5, c220
// mov r5.x, c221.x					// retrieve depth value from  Const1 in DX9Settings.ini
texldl r4, r5.z, s0					// retrieve values from stereo texture 
mul r4.x, r4.x, -r5.x				// multiplicity Separation * c220.x 
add r3.x, r3.x, -r4.x    			// correct output vertex position
mov o10, r3.xyzw              		// mov from temporary register to output 	

// approximately 15 instruction slots used


