Factors affecting star brightness