The equation for radiative heat transfer tells us the relation of opacity (κ) and temperature gradient T. Stars with high opacity will be convective, while low opacity will be radiative for heat transfer.