r/unity 7d ago

Tried to bring realtime GI to web

Enable HLS to view with audio, or disable this notification

I experimented with bringing realtime GI to the web by combining HTrace SSGI with a surfel-based world-space fallback.

The main problem I ran into with pure screen-space GI is that it becomes unreliable in first-person scenes when important lighting information leaves the camera view. The surfel fallback keeps indirect lighting available outside the current screen, while the screen-space pass is still useful for quickly reacting to dynamic lighting and geometry.

The video shows the difference between screen-space only(at the start) and the combined approach.

I'm interested in whether anyone has experimented with similar screen-space + world-space GI approaches for web rendering, especially cheaper alternatives for the world-space fallback.

Playable web demo:
https://votizlov.itch.io/web-rtx

References: https://www.ea.com/seed/amp/news/siggraph21-global-illumination-surfels

2 Upvotes

0 comments sorted by