fix(ibl): blown out main menu - #2596
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough
ChangesAmbient shared-data cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No actionable suggestions for changed features. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/State.cpp`:
- Around line 1054-1070: Ensure the ambient SH coefficients are preserved when
IsMainOrLoadingMenuOpen() is true: avoid uploading zero-initialized
data.AmbientSHR/G/B in that path. Update the surrounding constant-buffer
preparation/upload flow to carry forward the previously cached coefficients or
otherwise upload without modifying those fields, while retaining the existing
DALCToSH update when the menu is closed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 4636d0e0-cdd5-4058-a538-3e0694d3bc6a
📒 Files selected for processing (1)
src/State.cpp
|
✅ A pre-release build is available for this PR: |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/State.cpp (1)
1007-1007: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winLink the fix to its tracking issue.
If this bug fix corresponds to a GitHub issue, add
Fixes #<issue-number>orCloses #<issue-number>to the PR description.As per path instructions, bug-fixing PRs should include an appropriate GitHub keyword reference.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/State.cpp` at line 1007, Add a GitHub closing keyword with the relevant issue number to the pull request description, such as “Fixes #<issue-number>” or “Closes #<issue-number>”. No source-code change is required around IsMainOrLoadingMenuOpen.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/State.cpp`:
- Line 1007: Add a GitHub closing keyword with the relevant issue number to the
pull request description, such as “Fixes #<issue-number>” or “Closes
#<issue-number>”. No source-code change is required around
IsMainOrLoadingMenuOpen.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 11ef72df-82c8-4031-826c-fb24b5f053c9
📒 Files selected for processing (5)
package/Shaders/Common/SharedData.hlslisrc/State.cppsrc/State.hsrc/Utils/Game.cppsrc/Utils/Game.h
💤 Files with no reviewable changes (2)
- src/Utils/Game.cpp
- src/Utils/Game.h
There was a problem hiding this comment.
🧹 Nitpick comments (1)
package/Shaders/Lighting.hlsl (1)
2969-2971: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd the issue-closing reference to the PR description.
Because this change fixes issue
#2509, addFixes#2509(or `Closes `#2509) to the PR body. The existing title already satisfies Conventional Commits, so no title change is needed.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@package/Shaders/Lighting.hlsl` around lines 2969 - 2971, Update the pull request description to include “Fixes `#2509`” or “Closes `#2509`”. Do not change the existing Conventional Commits-compliant title.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@package/Shaders/Lighting.hlsl`:
- Around line 2969-2971: Update the pull request description to include “Fixes
`#2509`” or “Closes `#2509`”. Do not change the existing Conventional
Commits-compliant title.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: d7af4aab-9acd-4f87-87f5-2014f6b3925a
📒 Files selected for processing (2)
package/Shaders/Common/SharedData.hlslipackage/Shaders/Lighting.hlsl
💤 Files with no reviewable changes (1)
- package/Shaders/Common/SharedData.hlsli
fixes #2509
DirectionalAmbient is written per draw from the engine's ambient cube, so it stays correct when a pass rebinds that cube (MistMenu does); the global SH is a once-per-frame snapshot and can disagree.
also removes dead code
Summary by CodeRabbit
Summary by CodeRabbit
Bug Fixes
Refactor
Chores