The glowing fungus is a quest item used in the Haunted Mine quest. It is used to light the way in the lower parts of the mine where fire-based light sources are extinguished by being dropped into a small pool.
Being used to growing in a very dark cave, the fungus is very susceptible to sunlight and will crumble if taken out of the confines of the mine.