A method for producing an optical element, comprising an interferometric layer system (10, 11) arranged on at least one surface (60, 62) of a substrate with a stack of three, four or five successive layer packages (20, 22, 24, 26, 28), wherein each layer package (20, 22, 24, 26, 28) comprises a first partial layer with a first optical thickness and a second partial layer with a second optical thickness which is different from the first optical thickness and the partial layer, which is nearer to the substrate has a higher refractive index than the other of the partial layers, wherein the first partial layer is a higher refractive partial layer and the second partial layer is a lower refractive partial layer and wherein the higher refractive partial layer comprises in particular a high refractive partial layer and the lower refractive partial layer comprises in particular a low refractive partial layer, characterized in that optical properties of the layer system are set by varying the thicknesses of the layer packages (20, 22, 24, 26) in the stack with the same number of layer packages (20, 22, 24, 26) with the same layer sequence and constant materials of the layer packages (20, 22, 24, 26) depending on a parameter (σ), wherein the respective layer packages (20, 22, 24, 26, 28) are formed depending on a quotient (v i) of a first optical thickness of each higher refractive first partial layer and a second optical thickness of a lower refractive second partial layer of the layer package (20, 22, 24, 26, 28), the index i denoting the sequence of the successive layer packages (20, 22, 24, 26, 28) in the stack, and the parameter (σ) is a function of the ratio of the quotients (v i), wherein for the respective stack a reflectivity (Rm), of the stack of layer packages (20, 22, 24, 26, 28) is specified in percentage, averaged over the visible range of light from 380 nm to 800 nm, and wherein a product (σ ∗ Rm) of reflectivity (Rm) and the parameter (σ) is set to less than 1 in order to achieve a non-glare and / or anti-reflective effect of the stack of layer packages (20, 22, 24, 26, 28), or is set greater than or equal to 1, in order to achieve a mirroring effect of this stack, and wherein the optical thicknesses (t1, t2) of the first and second partial layers (30, 32) of one or more layer packages (20, 22, 24, 26, 28) are determined by determining the parameter (σ) by means of an optimization method, and the first and second partial layers (30, 32) are produced with the calculated parameters, in particular the optical thicknesses (t1, t2) of the partial layers (30, 32) of the layer packages (20, 22, 24, 26, 28) of a stack of layer packets (20, 22, 24, 26, 28), the functions of the ratio of quotients (v i) or the optical thickness of a higher refractive sublayer and the optical thickness of a lower refractive sublayer of the layer package (20, 22, 24, 26, 28) for the parameter (σ) is (i) for a stack of three or five successive layer packages (20, 22, 24, 26, 28) σ = v 1 ∑ i = 2 nmax v i and where i = 1 to nmax, for nmax = 3 or nmax = 5, denotes the sequence of the layer packages (20, 22, 24, 26, 28) in the stack and v i is a quotient of the optical thickness of the higher refractive partial layer to the optical thickness of the lower refractive partial layer of a respective layer package (20, 22, 24, 26, 28). or (ii) for a stack of four successive layer packages (20, 22, 24, 26) σ = v 1 + v 2 v 3 + v 4 and wherein the indices 1 to 4 denote the sequence of the layer packages (20, 22, 24, 26) in the stack and v i with i = 1 to 4, is derived from a quotient of the optical thickness of the higher refractive index layer to the optical thickness of the lower refractive index layer of a respective layer package (20, 22, 24, 26). (i) for a stack of three or five successive layer packages (20, 22, 24, 26, 28) σ = v 1 ∑ i = 2 nmax v i and where i = 1 to nmax, for nmax = 3 or nmax = 5, denotes the sequence of the layer packages (20, 22, 24, 26, 28) in the stack and v i is a quotient of the optical thickness of the higher refractive partial layer to the optical thickness of the lower refractive partial layer of a respective layer package (20, 22, 24, 26, 28). or (ii) for a stack of four successive layer packages (20, 22, 24, 26) σ = v 1 + v 2 v 3 + v 4 and wherein the indices 1 to 4 denote the sequence of the layer packages (20, 22, 24, 26) in the stack and v i with i = 1 to 4, is derived from a quotient of the optical thickness of the higher refractive index layer to the optical thickness of the lower refractive index layer of a respective layer package (20, 22, 24, 26).