point shader refactoring