// Helix Mod Fix: "Guild Wars 2" by Eincrou
// Last Modified for Fix Version: 1 (December 25, 2012)
// Game Version: Gw2: 16,378
// http://helixmod.blogspot.com/
// VS#3: UI 2
	vs_3_0
def c224, 0.3, 0, 0.0625, 0
dcl_2d s0
    def c4, 0, 0, 0, 0
    dcl_position v0
    dcl_normal v3
    dcl_texcoord v7
    dcl_texcoord o0
    dcl_position o1
    mov r0.xyz, c4.x
    mov r0.xyz, c4.x
    dp4 r2.x, v0, c0
    dp4 r2.y, v0, c1
    dp4 r2.z, v0, c2
    dp4 r2.w, v0, c3
    mov o0.xy, v7
texldl r10, c224.z, s0
mov r9.x, c250.y
if_eq r9.x, c224.w
	mul r10.x, r10.x, -c224.x	// Preset1Key
else
	mul r10.x, r10.x, -c224.y	// Preset2Key
endif
add r2.x, r2.x, -r10.x
mov o1, r2

// approximately 7 instruction slots used