An ophthalmic endoilluminator includes a light source, a variable-wedge rotating-disk attenuator, a condensing lens, and an optical fiber. The variable-wedge rotating-disk attenuator attenuates the light produced by the light source. The variable-wedge rotating-disk attenuator includes a wedge capable of being adjusted over a variable angle as measured through an arc of the wedge and an axle to which the wedge is attached. The axle rotates such that the wedge rotates around a pivot defined by the axle. The condensing lens focuses the attenuated light. The optical fiber carries the focused light into an eye. The variable-wedge rotating-disk attenuator is located such that it affects the intensity of a light beam transmitted into an eye.