Ported camera system. Removed global variables in shader from function definitions. Added uniform variables.