Refactored shader code.