Added shameless copypasta of shader loader class.