Shaping of glass or deposition of glass