Moved functions processing shader to a single cpp file.