Phototransistors are a type of transistor where the base voltage is controlled by the amount of light.

This finds some use in applications where light and the transistor are used together as a switch. Like in an optocoupler.