Stellar luminosity and photospheric pressure