We calculate the observed luminosity and spectrum following the emergence of
a relativistic shock wave from a stellar edges. Shock waves propagating at
, where is the shock
Lorentz factor and is its associated reduced velocity, heat
the stellar envelope to temperatures exceeding keV, allowing for a
vigorous production of electron and positron pairs. Pairs significantly
increase the electron scattering optical depth and regulate the temperature
through photon generation, producing distinct observational signatures in the
escaping emission. Assuming Wien equilibrium, we find analytic expressions for
the temperature and pair density profiles in the envelope immediately after
shock passage, and compute the emission during the expansion phase. Our
analysis shows that in pair loaded regions, photons are produced at a roughly
uniform rest frame energy of keV, and reinforces previous estimates
that the shock breakout signal will be detected as a short burst of energetic
-ray photons, followed by a longer phase of X-ray emission. We test our
model on a sample of low-luminosity gamma ray bursts using a closure relation
between the -ray burst duration, the radiation temperature and the
-ray isotropic equivalent energy, and find that some of the events are
consistent with the relativistic shock breakout model. Finally, we apply our
results to explosions in white dwarfs and neutron stars, and find that typical
type Ia supernovae emit erg in the form of MeV photons.