God rays · XR lenses

On this page 7

God rays, in the context of XR lenses, are visible streaks, halos or fans of stray light that radiate from bright, high-contrast objects into darker parts of the image seen through a headset. Within the Topic of XR displays & optics in extended reality, the term describes an optical artifact of the lens, mostly associated with Fresnel lenses, rather than a rendering effect.

The name borrows from the atmospheric phenomenon of sunbeams through clouds and from the volumetric lighting effect in computer graphics, but here it means an unwanted flaw. God rays are most obvious with white text on a black background, credits screens and space scenes, and they reduce perceived contrast and clarity.

How Fresnel lenses create god rays

A Fresnel lens replaces the continuous curved surface of a conventional lens with a series of concentric ridges, each holding a small slice of the original curvature. This design makes the lens thin and light, but every ridge has a draft facet, a nearly vertical wall that does not contribute to focusing.

Light from a bright pixel that strikes these facets, or reflects inside a ridge, is refracted in unintended directions. Because the ridges are circular, the misdirected light forms radial streaks that point away from the lens center. The effect grows with the contrast ratio between the bright object and its surroundings.

Several optical mechanisms contribute to the artifact, and the table separates them by origin and visual signature.

MechanismWhere it occursVisual signature
Draft facet scatteringVertical walls of Fresnel ridgesRadial streaks from bright objects
Internal reflectionBetween ridge surfacesFaint secondary glow or ghost
Diffraction at ridge edgesFine ridge pitch near the edgeSoft colored fringes
Surface contaminationDust, oil or scratches on the lensDiffuse haze around highlights
Optical sources of god rays in XR lenses

Ridge geometry matters. A finer ridge pitch reduces the size of each streak but increases diffraction, while a coarser pitch produces fewer but more distinct rays. Optical designers balance these factors against weight, thickness and manufacturing cost.

God rays are often confused with other headset artifacts, yet each one has a different physical cause and a different remedy. Distinguishing them helps when evaluating a headset or troubleshooting user complaints.

ArtifactPhysical causeWhen it is most visible
God raysStray light from Fresnel ridgesBright objects on dark backgrounds
Screen-door effectVisible gaps between display pixelsUniform bright areas
Mura effectUneven pixel brightness across the panelDark gray or uniform scenes
Pupil swimDistortion that shifts with eye movementLooking toward the lens edge
GhostingReflections between lens elementsHigh-contrast scenes in pancake optics
How god rays differ from neighboring artifacts

The distinction between god rays and ghosting is particularly relevant. Fresnel optics tend to produce radial streaks, while pancake lenses largely eliminate those streaks but can show faint double images from their polarization folding path. Neither design is entirely free of stray light.

Factors that make god rays stronger or weaker

The visibility of god rays depends on lens design, display characteristics, content and fit. The same headset can look clean in a bright game and poor in a dark menu, which is why reviewers test with standardized high-contrast scenes.

The table summarizes the main variables and how each one influences the artifact.

FactorEffect on god raysPractical note
Lens typeFresnel strongest, pancake weakestHybrid Fresnel designs fall in between
Display black levelDeeper blacks reveal streaks moreOLED and micro-OLED expose stray light
Content contrastHigh contrast amplifies raysWhite text on black is the worst case
Eye positionOff-axis viewing increases raysCorrect interpupillary distance helps
Eye reliefGreater distance changes ray patternGlasses spacers can worsen artifacts
Lens cleanlinessSmudges add diffuse glareClean with a dry microfiber cloth
Variables that influence god ray visibility

A counterintuitive point is that better displays can make god rays more noticeable. An LCD with elevated black levels masks faint stray light in a gray haze, whereas a panel with near-true black renders every streak against a perfectly dark field.

How headset makers and developers reduce god rays

Mitigation happens at three levels: optical hardware, display and fit, and content design. Hardware changes deliver the largest improvement, while software and content choices reduce the remaining artifact.

  • Pancake optics fold the light path with polarizers and partial mirrors, removing Fresnel ridges altogether.
  • Hybrid lenses keep a smooth center and confine ridges to the periphery.
  • Anti-reflective coatings and blackened ridge facets absorb part of the stray light.
  • Accurate IPD adjustment keeps the pupils in the optical sweet spot.
  • Content design avoids pure white elements on pure black backgrounds.

Developers can apply simple rules that noticeably reduce the artifact without changing hardware, as the decision table shows.

SituationRecommended choiceReason
Menu or interface panelDark gray background instead of pure blackLower contrast hides streaks
Subtitles and creditsLight gray text with moderate sizeReduces peak brightness
Space or night sceneSoft ambient light and fewer isolated highlightsFewer point sources to scatter
Loading screenCentered, low-brightness logoLens center scatters the least
Content choices that limit god rays

Limitations and common misconceptions about god rays

God rays cannot be fully removed by software, because the light is scattered after it leaves the display. Lens distortion correction and chromatic aberration correction compensate predictable geometric errors, but stray light is not a deterministic mapping of pixels and therefore resists pre-compensation.

Another misconception treats god rays as a defect of a single unit. In most cases the artifact is a design characteristic shared by every headset of the same model. Only unusual asymmetry between the two eyes or sudden worsening suggests damage, contamination or misalignment. Perception also varies widely between users, so one person may find rays distracting while another hardly notices them.

Understanding it simply

God rays are light streaks caused by the headset lenses. Think of driving at night with a slightly scratched windshield: oncoming headlights seem to throw lines of light across the glass. Headset lenses with fine circular ridges do something similar with bright objects on the screen.

You see the effect most when something bright sits on something very dark, like white letters on a black screen. Newer, flatter lens designs have greatly reduced the problem, and careful app design can make it even less noticeable.

Applied in practice

A small studio builds a meditation app set under a night sky for headsets that still use Fresnel lenses. Early testers report bright streaks fanning out from the moon and from the white menu text, which distracts from the calm atmosphere.

The team lowers the moon brightness, adds a faint atmospheric glow around it, changes the menu background from pure black to dark gray at about 15 percent brightness and switches text to light gray. They also place the menu near the center of view, where the lens scatters least. In a second round of tests, most participants no longer mention god rays, and those using newer headsets with pancake lenses notice no difference in image quality, so the changes cost nothing on modern hardware.