A light emitting device comprising: a light emitting diode die configured to emit a first light of a first wavelength, the LED die having a bottom surface, an oppositely positioned top surface, and side surfaces connecting the top and bottom surfaces; a phosphor coating conformally coating the top and side surfaces of the LED die and configured to absorb a portion of the first light and in response emit second light of a second wavelength; a reflective cup comprising a central portion to which the bottom surface of the LED die is attached and reflective surfaces sloping upward from a central portion of the cup; and a clear encapsulant filling the cup to at least cover a top of the phosphor coating, the encapsulant having a smooth, flat outer surface substantially parallel to a top surface of the LED die, the encapsulant having an air-encapsulant interface and being arranged such that a portion of the first light and the second light intercept the air-encapsulant interface at an angle below a critical angle and is totally internally reflected as a first reflected light in a direction toward at least one of the reflective surfaces, the reflective surfaces configured to reflect the first reflected light as a second reflected light in a direction that passes through the air-encapsulant interface, characterized in that the cup has a rectangular aperture and the reflective flat surfaces slope monotonically upward from the central portion of the cup to the aperture at an angle between 28-38 degrees, an outer perimeter of the cup has a rectangular shape, the light emitting device further comprising an array of abutting cups mounted on a common substrate such that the array has a substantially flat top surface, and each of the cups emits a substantially rectangular beam which uniformly overlaps with the rectangular beams from other cups in the array. a light emitting diode die configured to emit a first light of a first wavelength, the LED die having a bottom surface, an oppositely positioned top surface, and side surfaces connecting the top and bottom surfaces; a phosphor coating conformally coating the top and side surfaces of the LED die and configured to absorb a portion of the first light and in response emit second light of a second wavelength; a reflective cup comprising a central portion to which the bottom surface of the LED die is attached and reflective surfaces sloping upward from a central portion of the cup; and a clear encapsulant filling the cup to at least cover a top of the phosphor coating, the encapsulant having a smooth, flat outer surface substantially parallel to a top surface of the LED die, the encapsulant having an air-encapsulant interface and being arranged such that a portion of the first light and the second light intercept the air-encapsulant interface at an angle below a critical angle and is totally internally reflected as a first reflected light in a direction toward at least one of the reflective surfaces, the reflective surfaces configured to reflect the first reflected light as a second reflected light in a direction that passes through the air-encapsulant interface, characterized in that the cup has a rectangular aperture and the reflective flat surfaces slope monotonically upward from the central portion of the cup to the aperture at an angle between 28-38 degrees, an outer perimeter of the cup has a rectangular shape, the light emitting device further comprising an array of abutting cups mounted on a common substrate such that the array has a substantially flat top surface, and each of the cups emits a substantially rectangular beam which uniformly overlaps with the rectangular beams from other cups in the array.