A lamp for a vehicle includes a lamp module configured to emit light; an interface unit configured to receive information; at least one processor; and a computer-readable medium having stored thereon instructions that, when executed by the at least one processor, cause the at least one processor to perform operations that include: receiving, through the interface unit, driving situation information of the vehicle; and controlling, based on the driving situation information, a resolution of light that is output from the lamp module.