Setting material type and thickness.