The ray tracer models an isotropic 2-D source — a point in a lossless slab of index n, with a perfectly reflecting bottom and air (n = 1) above. Each launched ray gets a direction drawn uniformly on [0, 2π).
The escape cone
A ray can emerge through the top surface only if its angle to the normal is less than θc; steeper angles are totally internally reflected. The lossless bottom mirror doubles the effective angular range that can reach the top escape cone.
Why 2-D
A 2-D ray trace is deliberately azimuthally averaged — the physics inside AR eyepiece / OLED side views collapses to a single plane and the simulator shows exactly that cross-section. For a full-sphere average, integrate the 2-D result over the extra azimuthal angle; the AR / OLED tools already present side views, so the 2-D result is what you want.