Method of controlling an active filtering device embedded in a device worn by a wearer, the active filtering device comprising an active filter and a filter controller arranged to control the active filter, the active filter being configured to adapt the light exposure profile of the wearer depending on the light sources in the environment of the wearer, the active filtering device being configured to control a controller device of a head mounted display device comprising a light emitting source arranged to emit a light to an eye of the wearer when the head mounted display device is worn by the wearer, the controller device being adapted to control the emitted spectrum and/or intensity of the light emitted by the light emitting source, the method comprising: - a wearer location providing step, during which a location of the wearer is provided, - a luminous cartography providing step, during which a luminous cartography relating to the light sources in the environment of the wearer is provided, the luminous cartography depending at least on the location of the wearer, the luminous cartography in the environment of the wearer depending on the emission spectra of the light sources, - a light exposure profile determining step, during which at least one part of the light exposure profile of the wearer is determined based at least on the luminous cartography and on the wearer location, - an active filter controlling step, during which the active filter is controlled by the filter controller according to the determined light exposure profile of the wearer. the controller device being adapted to control the emitted spectrum and/or intensity of the light emitted by the light emitting source, the method comprising: - a wearer location providing step, during which a location of the wearer is provided, - a luminous cartography providing step, during which a luminous cartography relating to the light sources in the environment of the wearer is provided, the luminous cartography depending at least on the location of the wearer, the luminous cartography in the environment of the wearer depending on the emission spectra of the light sources, - a light exposure profile determining step, during which at least one part of the light exposure profile of the wearer is determined based at least on the luminous cartography and on the wearer location, - an active filter controlling step, during which the active filter is controlled by the filter controller according to the determined light exposure profile of the wearer. - a wearer location providing step, during which a location of the wearer is provided, - a luminous cartography providing step, during which a luminous cartography relating to the light sources in the environment of the wearer is provided, the luminous cartography depending at least on the location of the wearer, the luminous cartography in the environment of the wearer depending on the emission spectra of the light sources, - a light exposure profile determining step, during which at least one part of the light exposure profile of the wearer is determined based at least on the luminous cartography and on the wearer location, - an active filter controlling step, during which the active filter is controlled by the filter controller according to the determined light exposure profile of the wearer.