// Helix Mod Fix: "Darksiders" by Eincrou
// Last Modified for Fix Version: 2 (December 14, 2012)
// Game Version: 1.1
// http://helixmod.blogspot.com/
// VS#485: Menu texts, subtitles
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022
//
// Parameters:
//
//   float4 mvp[4];
//
//
// Registers:
//
//   Name         Reg   Size
//   ------------ ----- ----
//   mvp          c0       2
//

    vs_3_0					// vs_2_0
def c220, 0.40, 0, 0.0625, -0.03
    dcl_position v0  // pos<0,1,2,3>
    dcl_texcoord v1  // tc0<0,1>
    dcl_color v2  // color<0,1,2,3>
dcl_2d s0
dcl_position o0
dcl_texcoord o1.xy
dcl_color o2

#line 10 "E:\Steam\steamapps\common\Darksiders\memory"
    dp4 r2.x, v0, c0  // opos<0>		oPos.x
    dp4 r2.y, v0, c1  // opos<1>		oPos.y
    mov r2.zw, v0  // opos<2,3>			oPos.zw
    mov o1.xy, v1  // otc0<0,1>			oT0.xy
    mov o2, v2.zyxw  // ocolor<0,1,2,3>	oD0

	texldl r1, c220.z, s0
	mov r14.x, c250.y 
 if_eq r14.x, c220.y
							// Primary depth setting
	mul r1.x, r1.x, -c220.x	// Default. Also activated by Preset2 key
							// Uses c220.x value for amount of depth
	else					// Secondary depth setting
	mul r1.x, r1.x, -c220.w	// Activated by Preset1 key
							// Uses c220.w value for amount of depth
 endif 
add r2.x, r2.x, -r1.x
mov o0, r2
// approximately 5 instruction slots used
 