Material report Luminosity

How do I get luminosity from a material. I know I can do this in unity. I know something like this can be done in unreal going about other methods.
https://www.reddit.com/r/unrealengine/comments/8hcfwy/light_detector_method_inspired_by_the_dark_mod/