There is a program I tried called Light Flow, that I tried but it didn't work too well. In all fairness, I read that most HTC devices are not supported because of hardware issues. Not sure how much truth there is to that...
Portions of this page are modifications based on work created and shared by the Android Open Source Project
and used according to terms described in the Creative Commons 2.5 Attribution License. AndroidCentral is an independent site
that is not affiliated with or endorsed by Google.