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.
| Mechanism | Where it occurs | Visual signature |
|---|---|---|
| Draft facet scattering | Vertical walls of Fresnel ridges | Radial streaks from bright objects |
| Internal reflection | Between ridge surfaces | Faint secondary glow or ghost |
| Diffraction at ridge edges | Fine ridge pitch near the edge | Soft colored fringes |
| Surface contamination | Dust, oil or scratches on the lens | Diffuse haze around highlights |
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 compared with related optical artifacts
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.
| Artifact | Physical cause | When it is most visible |
|---|---|---|
| God rays | Stray light from Fresnel ridges | Bright objects on dark backgrounds |
| Screen-door effect | Visible gaps between display pixels | Uniform bright areas |
| Mura effect | Uneven pixel brightness across the panel | Dark gray or uniform scenes |
| Pupil swim | Distortion that shifts with eye movement | Looking toward the lens edge |
| Ghosting | Reflections between lens elements | High-contrast scenes in pancake optics |
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.
| Factor | Effect on god rays | Practical note |
|---|---|---|
| Lens type | Fresnel strongest, pancake weakest | Hybrid Fresnel designs fall in between |
| Display black level | Deeper blacks reveal streaks more | OLED and micro-OLED expose stray light |
| Content contrast | High contrast amplifies rays | White text on black is the worst case |
| Eye position | Off-axis viewing increases rays | Correct interpupillary distance helps |
| Eye relief | Greater distance changes ray pattern | Glasses spacers can worsen artifacts |
| Lens cleanliness | Smudges add diffuse glare | Clean with a dry microfiber cloth |
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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Menu or interface panel | Dark gray background instead of pure black | Lower contrast hides streaks |
| Subtitles and credits | Light gray text with moderate size | Reduces peak brightness |
| Space or night scene | Soft ambient light and fewer isolated highlights | Fewer point sources to scatter |
| Loading screen | Centered, low-brightness logo | Lens center scatters the least |
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.