The capacitors are for preventing flicker, not much to do with controlling brightness. It’s the 47Ω resistors that are responsible for limiting current to the LEDs.

The 1.5MΩ is a bleed resistor to drain the capacitors so the light shuts off quickly rather than fading out over a longer time.