Finished shader refactoring.