move resource shader loader to source files