Factors affecting the brightness of a star