there is a vector called vecViewPos that is automatically passed to the shader ..just declare it correctly like any other vector and it will be what you want