In a method of doping or of coloring ceramic, glass ceramic or glass, the ceramic, the glass ceramic or the glass is provided as granular material and this granular material is brought into contact with a solution which contains metal ions and/or metal complexes. This method is used in particular in the production of shaped bodies that consist at least partly of the mentioned materials. In this way, preferably a shaped body of dental ceramic is produced.