Involved in bioluminescence. It is a good supplier of reduced flavin mononucleotide (FMNH2) to the bioluminescence reaction. Preferably uses riboflavin as an electron acceptor when NADPH is used as an electron donor. Belongs to the Fre/LuxG FAD/NAD(P) flavoprotein oxidoreductase family.