A method for material processing is disclosed, the method comprising applying a laser beam (5), directing the laser beam to a processing location (6) to melt material (3) at the processing location, and providing a shielding gas flow (8). The shielding gas flow is controlled dependent on at least one of a processing location position, a processing advance vector, and a processing trajectory.