I already saw some tutorial how to add a texture to the picture (for example: https://www.youtube.com/watch?v=wnB2NUIb1h0).
I am interested in similar technique but with one extra condition -- preserving the lighting. Let's say you have a house in the picture -- let's focus on its wall -- its entire area is not equally lit, and what worse some obstacles can shadow some parts (for example roof can cast a shadow at the top of the wall).
When I add new texture to the wall it will be obvious there is something wrong with the picture, because lighting would not match -- thus this condition of preserving the lighting.
I have Gimp installed, but any program will suffice, because I am more interested in current state of the capabilities of this feature, less in day-to-day usage of it (thus I can install a trial version of necessary program).