refactoring and fixed clipping plane for mesh renderer