Would a transparent pile of compost the size of the Sun have the same effect?
I followed a thread here that included the surprising fact that Hydrogen fusion is so unlikely the power output per volume of the core of the sun is only about the same as a compost heap.
The reason the sun is so bright and hot is its size.