<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt" -->

---
title: Lighting That Feels Just Right: An Exploration of...
description: Real-time global illumination can be approximated in the browser with two techniques: screen-space ray marching and probe-based lighting, using compute shaders...
canonical: https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Lighting That Feels Just Right: An Exploration of Real-Time Global Illumination | daily.dev
og:description: Real-time global illumination can be approximated in the browser with two techniques: screen-space ray marching and probe-based lighting, using compute shaders...
og:url: https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt
og:image: https://api.daily.dev/og/posts/VUTL6PTzT.png
og:image:alt: Lighting That Feels Just Right: An Exploration of Real-Time Global Illumination
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Lighting That Feels Just Right: An Exploration of Real-Time Global Illumination

**[Maxime Heckel](https://daily.dev/sources/maximeheckel)** · 33 min read · 0 upvotes · 0 comments

## Summary

Real-time global illumination can be approximated in the browser with two techniques: screen-space ray marching and probe-based lighting, using compute shaders and TSL. Screen-space GI reconstructs surface positions from depth and normal maps, traces 8 cosine-weighted hemisphere rays per pixel, and uses temporal accumulation to reduce noise, but it fails for off-screen geometry and resets on camera movement. Probe-based GI places world-space probes that trace rays against scene geometry, storing six directional lighting estimates per probe in an atlas, and adds hysteresis to retain lighting history when a light moves instead of discarding it. The approach is later extended with reflections and atmospheric-scattering sky light.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.maximeheckel.com/posts/lighting-that-feels-just-right>

## Questions this post answers

### What's the main drawback of screen-space global illumination compared to probe-based GI?

Screen-space global illumination cannot compute indirect lighting for surfaces that are off camera, since it only works with pixels visible in the current frame. It also requires resetting accumulated lighting on every camera movement unless reprojection is used, and its cost scales with pixel count since it runs at full resolution.

_Developers weighing SSGI against probe-based GI can compare real implementation trade-offs on daily.dev._

### How does hysteresis help with temporal accumulation in probe-based global illumination?

Hysteresis controls how much of the previous lighting estimate gets blended into the new one each frame, instead of discarding history entirely when the light changes. Setting it to 0.95 means the blend is 95% history and 5% new measurement once enough frames have accumulated, reducing noise while letting lighting gradually adapt rather than resetting from scratch.

_Anyone tuning noise versus responsiveness in real-time lighting can find similar techniques on daily.dev._

### How many rays per pixel are typically traced for screen-space global illumination in a real-time WebGPU renderer?

Eight rays per pixel are cast within a cosine-weighted hemisphere oriented along each surface's normal, with temporal accumulation combining results across frames to reduce the resulting noise instead of increasing the per-frame ray count, which would hurt performance.

_Developers optimizing real-time ray counts and performance can track rendering techniques like this on daily.dev._

## Similar posts on daily.dev

- [Lightweight attention-based indirect illumination](https://daily.dev/posts/lightweight-attention-based-indirect-illumination-33tp9vsnf) · AMD GPUOpen · 2 upvotes · 0 comments
- [THREE.js-PathTracing-Renderer](https://daily.dev/posts/three-js-pathtracing-renderer-f7kf7vkhm) · Hacker News · 3 upvotes · 0 comments
- [Fake GI System In Vehicle Combat Indie Game](https://daily.dev/posts/fake-gi-system-in-vehicle-combat-indie-game-zfnxx59cf) · 80 LEVEL · 0 upvotes · 0 comments
- [Drawing With Light: An Exploration of Lit GPU Tubes with TSL and WebGPU](https://daily.dev/posts/drawing-with-light-an-exploration-of-lit-gpu-tubes-with-tsl-and-webgpu-hcfish0ru) · Codrops · 0 upvotes · 0 comments

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#graphics-programming](https://daily.dev/tags/graphics-programming), [#threejs](https://daily.dev/tags/threejs), [#webgpu](https://daily.dev/tags/webgpu)

[View this post on daily.dev](https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Lighting That Feels Just Right: An Exploration of Real-Time Global Illumination","url":"https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt"},"datePublished":"2026-11-17T00:36:10.940Z","dateModified":"2026-11-17T00:37:04.609Z","description":"Real-time global illumination can be approximated in the browser with two techniques: screen-space ray marching and probe-based lighting, using compute shaders...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8812a5f80449af54a132a00ed09e58f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8812a5f80449af54a132a00ed09e58f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Maxime Heckel","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Maxime Heckel","logo":"https://media.daily.dev/image/upload/s--jDyodS-p--/f_auto,q_auto/v1780213584/logos/maximeheckel?_a=BAMAMiWQ0","url":"https://daily.dev/sources/maximeheckel"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development,graphics-programming,threejs,webgpu","timeRequired":"PT33M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maxime Heckel","item":"https://daily.dev/sources/maximeheckel"},{"@type":"ListItem","position":3,"name":"Lighting That Feels Just Right: An Exploration of Real-Time Global Illumination"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/lighting-that-feels-just-right-an-exploration-of-real-time-global-illumination-vutl6ptzt#faq","mainEntity":[{"@type":"Question","name":"What's the main drawback of screen-space global illumination compared to probe-based GI?","acceptedAnswer":{"@type":"Answer","text":"Screen-space global illumination cannot compute indirect lighting for surfaces that are off camera, since it only works with pixels visible in the current frame. It also requires resetting accumulated lighting on every camera movement unless reprojection is used, and its cost scales with pixel count since it runs at full resolution. Developers weighing SSGI against probe-based GI can compare real implementation trade-offs on daily.dev."}},{"@type":"Question","name":"How does hysteresis help with temporal accumulation in probe-based global illumination?","acceptedAnswer":{"@type":"Answer","text":"Hysteresis controls how much of the previous lighting estimate gets blended into the new one each frame, instead of discarding history entirely when the light changes. Setting it to 0.95 means the blend is 95% history and 5% new measurement once enough frames have accumulated, reducing noise while letting lighting gradually adapt rather than resetting from scratch. Anyone tuning noise versus responsiveness in real-time lighting can find similar techniques on daily.dev."}},{"@type":"Question","name":"How many rays per pixel are typically traced for screen-space global illumination in a real-time WebGPU renderer?","acceptedAnswer":{"@type":"Answer","text":"Eight rays per pixel are cast within a cosine-weighted hemisphere oriented along each surface's normal, with temporal accumulation combining results across frames to reduce the resulting noise instead of increasing the per-frame ray count, which would hurt performance. Developers optimizing real-time ray counts and performance can track rendering techniques like this on daily.dev."}}]}
```

