I use several lamps so I can dim or up the brightness based on need and location, but I'm switching to some controllable LED bulbs that will dim as well as change color tint for my main light, going more red and dimming as the night goes on.
you don't get the vitamin unless it's natural sunlight.. and it doesn't work well through a window.. sigh............
Some vitamins do not work from vitamins, some however, do and some do, but are not an efficient method. Vitamin D is one of the latter, yes, you can get it from food (milk) or a pill, but the most effective delivery method is sunlight.
Multi-vitamins get a bad rep for good reason, some are fake (unregulated), but also you can actually can overdose on some vitamins and minerals and still not get enough of one you need. My family tends to get to get too much zinc if we take a multi-vitamin (makes us feel lousy and/or trigger headaches), and still not always enough vitamin D. If you take certain ant-acid medications you can also go short on Vitamin B leading to an iron deficiency (B helps absorb iron) which can make you anemic (not fun). I take B for that reason and yes, it's very obvious it works. Take too much and you can't sleep.
Also,
Ultra Violet C rays which extremely dangerous is almost entirely blocked by ozone and glass.
Ultra Violet B rays cause cancer, most of these are blocked by glass.
Ultra Violet A rays provide vitamin D, most of these pass through most common forms of glass. It's not as efficient as being outside, but yes it does work.
All can give you a sun tan or burn as well as cancer.
Where windows fail is that you are usually only getting reflected light, and that cuts it in half. If you sit in a window in direct sunlight, it will work fine.
Keep in mind, A rays will not pass through plastic, which is why it will not penetrate your windshield(safety glass is two panes with plastic in between), but will through side windows (which are merely tempered). It can pass through some factory tint, but aftermarket film tint will block it, as will polarizing. Some aquarium lights can also give you a sunburn/tan sitting next to it (provided it's a glass tank), they sometimes use these lights for S.A.D. sufferers.
As for lights in the room, I use several lamps so I can dim or up the brightness based on need, but I'm switching to some controllable LED bulbs that will dim as well as change color tint for my main light.