The invention relates to a lighting device (1) for a motor vehicle for producing a light function comprising a
tail lamp and / or a
brake lamp. The lighting device (1) according to the invention comprises a lighting unit (10) for generating a light function, the lighting unit (10) being divided into a plurality of segments (11, 12, 13) extending in a main direction (Y), the lighting unit (10) being designed to set the brightness in each of the plurality of segments (11, 12, 13) independently of one another to a predetermined value in order to generate a specific light function. Furthermore, a
control unit is used to independently adjust the brightness of the plurality of segments (11, 12, 13), the
control unit is designed to set a first high brightness (LUM1), which meets a
brake light requirement, in a first segment (11) of the plurality of segments (11, 12, 13) when the light function to be generated comprises activation of the
brake light, and to set a second low brightness (LUM2), which meets a
tail light requirement or corresponds to a deactivated
tail light, in a second segment (12) of the plurality of segments (11, 12, 13), and adjusting the brightness in a third segment (13), which is arranged between the first segment (11) and the second segment (12) in the main direction (Y) and adjoins them, in particular without interruption, from the first brightness (LUM1) of the first segment (11) to the second brightness (LUM2) of the second segment (12) according to a predetermined change function.