An optical device comprising a portion formed of a glass which contains at least one of SiO2 and GeO2 said portion including a region in which the refractive index has been spacially modulated to provide a pattern of refractive index variation, characterised in that said pattern is applied to a glass which contains B2 O3 and said pattern is not dependent on the boron content of the glass.