1. A method for adjusting a location of a blocking image in an opacity layer, the opacity layer located in a head-mounted display device worn by a user, the head-mounted display device including display optics positioned between the opacity layer and an eye of the user, the blocking image preventing a portion of real-world light from reaching the eye of the user, comprising: receiving a virtual image to be presented by the display optics; receiving lighting information from an optical sensor system in the head-mounted display device; receiving an eye-position parameter; generating the blocking image in the opacity layer based on the lighting information and the virtual image; and adjusting the location of the blocking image in the opacity layer based on the eye-position parameter.