fix: water reflection flicker#2323
Conversation
📝 WalkthroughWalkthroughISWaterBlend.hlsl refactors water history blending by replacing a hard historyMask threshold with computed historyCoverage. A new WaterBlend namespace defines threshold constants and helper functions to clamp the history mask into a normalized coverage value, which then gates and scales the blend between source and water history colors. ChangesWater Blend History Coverage Refactor
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly Related PRs
Suggested Reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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.
🧹 Nitpick comments (1)
package/Shaders/ISWaterBlend.hlsl (1)
48-93: Add an issue-closing reference in the PR description.Since this is a bug-fix PR, consider adding
Fixes #<id>/Closes #<id>for traceability and auto-close behavior.As per coding guidelines, "When reviewing PRs... suggest adding appropriate GitHub keywords: 'Fixes
#123' or 'Closes#123' for bug fixes".🤖 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/ISWaterBlend.hlsl` around lines 48 - 93, The PR is a bug-fix for ISWaterBlend.hlsl (function main) but the PR description lacks an issue-closing keyword; update the PR description to include a GitHub keyword like "Fixes #<issue-number>" or "Closes #<issue-number>" referencing the bug tracked for this change so the issue will auto-close when merged (e.g., add "Fixes `#123`" to the PR body).
🤖 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/ISWaterBlend.hlsl`:
- Around line 48-93: The PR is a bug-fix for ISWaterBlend.hlsl (function main)
but the PR description lacks an issue-closing keyword; update the PR description
to include a GitHub keyword like "Fixes #<issue-number>" or "Closes
#<issue-number>" referencing the bug tracked for this change so the issue will
auto-close when merged (e.g., add "Fixes `#123`" to the PR body).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: dde43e50-2958-42ab-bab7-efefa4d9553a
📒 Files selected for processing (1)
package/Shaders/ISWaterBlend.hlsl
Summary by CodeRabbit