Skip to content

Conversation

@zalo
Copy link
Contributor

@zalo zalo commented Sep 9, 2025

Description

Live Demo: https://rawcdn.githack.com/zalo/three.js/fix-ssgi-rotations/examples/webgpu_postprocessing_ssgi.html

Make the SSGI pass work closer to the way it was intended to... Also enables panning in the demo scene (to better examine the GI). @Mugen87 @cdrintherrieno

Related issue: #31839

Recording.2025-09-09.123545.mp4

We should switch to a better target model (like the LittleTokyo model), but I won't porkbarrel this fix any more than this 😅

zalo added 2 commits September 9, 2025 12:47
Make the SSGI pass work closer to the way it was intended to...
Also enables panning in the demo scene (to better examine the GI).
Copilot AI review requested due to automatic review settings September 9, 2025 19:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a sampling asymmetry issue in the SSGI (Screen Space Global Illumination) Node by correcting the rotation angle calculation and enables panning in the demo scene for better examination of the global illumination effects.

  • Fixed sampling asymmetry by changing PI to PI2 in rotation angle calculation
  • Enabled panning controls in the SSGI demo scene

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
examples/jsm/tsl/display/SSGINode.js Fixed rotation angle calculation using PI2 instead of PI to resolve sampling asymmetry
examples/webgpu_postprocessing_ssgi.html Enabled panning controls in demo for better GI examination

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Mugen87 Mugen87 added this to the r181 milestone Sep 9, 2025
@Mugen87 Mugen87 merged commit 2531636 into mrdoob:dev Sep 9, 2025
8 checks passed
@zalo
Copy link
Contributor Author

zalo commented Sep 9, 2025

Oops wait I forgot the thumbnail 💀

@Mugen87
Copy link
Collaborator

Mugen87 commented Sep 9, 2025

That's okay, we do not include it in the E2E tests yet. There are some CI issues with examples that use renderings with noise or random values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants