There is an API script (pro subscription feature) that will do this: https://app.roll20.net/forum/post/4932580/script-one-way-dynamic-lighting
There is already an extensive request for this feature here. It's the 4th most requested feature with 483 votes. I might suggest adding your vote there to further promote the project.
Thanks for the suggestion!
After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness.
Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here.