This is quite an old technique actually. Back in the 60’s and 70’s they used to cut the tops of things like metal-can BC109’s (small signal transistors) in order to make them into photo transistors. Many years ago there was experiments with doing photovoltaic stuff with LED’s and it does work, though output was very low.