Can we warm medium by light ?

Can we change capacity of medium by light ?