// Helix Mod Fix: "Tom Clancy's Rainbow Six: Vegas 2" by Eincrou
// Last Modified for Fix Version: 3 (January 20, 2013)
// Game Version: v1.03.101 (336)
// http://helixmod.blogspot.com/
//	VS#3: Menu Text / HUD / Crosshair
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.19.949.2111
    vs_3_0
def c220, 2.375, 0, 0, 0
def c224, 0.95, -0.02, 0.0625, 0
dcl_2d s0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord1 v2
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2
    mov r7, v0
    mov o1.xy, v1
    mov o2, v2
texldl r10, c224.z, s0
mov r9.x, c250.y	// Preset Key
mov r5.x, c250.z	// Depth vale as defined in DX9Settings.ini
mov r4.x, c251.x	// Defined Textures
if_eq r9.x, c224.w
	if_eq r4.x, c251.w
		mul r10.x, r10.x, -r5.x	// Preset2Key
	else
		mul r5.x, r5.x, c220.x
		mul r10.x, r10.x, -r5.x	// For defined textures. Used for crosshair textures.
	endif
else
	mul r10.x, r10.x, -r5.x	// Preset1Key
endif
add r7.x, r7.x, -r10.x
mov o0, r7
// approximately 3 instruction slots used
 