Patent attributes
A method is performed at an electronic device with one or more processors, a non-transitory memory, one or more environmental sensors, and a display. The method includes displaying computer-generated content on the display. The method includes determining a first positional value associated with a physical object, based on environmental data from the one or more environmental sensors. The method includes identifying a portion of the computer-generated content that satisfies an occlusion criterion with respect to a corresponding portion of the physical object, based on the first positional value. The method includes, in response to identifying that the occlusion criterion is satisfied, generating a mesh associated with the physical object based on the first positional value, and displaying the mesh on the display. The mesh overlaps with the portion of the computer-generated content.