Director reorientation in a nematic liquid crystal with a photosensitive layer.