In first-person-shooters like Call of Duty, the hologram only appears when it is behind the glass portion of the sight.
In OpenGL, would it be implemented by rendering the glass to the stencil buffer and then rendering the hologram, but masked by the stencil buffer?