Refactoring rendering a tiny bit to add multisampling based on a random distribution