Producing or shaping of glass