The invention describes a glass and a glass-ceramic which at least includes the constituents SiO2, Al2O3 and Y2O3 and is preferably doped with rare earth ions. Sensors are provided with surface features that reduce the amount of outside light or shunted light that impinge the detecting elements of the sensor. The model associated with differences includes one or more features for expressing the differences.