// map 4

    vs_3_0
    def c2, 0, 1, 0, 0
def c220, 0.15, 0, 0.0625, 0
dcl_2d s0	
    dcl_position v0
    dcl_position o0			//to modify
//    dp4 o0.x, v0, c0
dp4 r3.x, v0, c0	 		//change output register for temporary register
//    dp4 o0.y, v0, c1
dp4 r3.y, v0, c1	 		//change output register for temporary register
//    mov o0.zw, c2.xyxy
mov r3.zw, c2.xyxy	 		//change output register for temporary register
mov r5, c220
mov r5.x, c221.x					// retrieve depth value from  Const1 in DX9Settings.ini
texldl r1, r5.z, s0					// retrieve values from stereo texture 
mul r1.x, r1.x, -r5.x				// multiplicity Separation * c220.x 
add r3.x, r3.x, -r1.x    			// correct output vertex position
mov o0, r3               // mov from temporary register to output 