Refactor parameters, and prevent texture clipping