fix(ll): reduce sky dither noise#2342
Conversation
📝 WalkthroughWalkthroughThe PR adjusts how noise gradients are applied in the sky pixel shader's legacy dithering path. The TEX case now conditionally includes ChangesSky Dithering Noise Gradient Logic
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 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 docstrings
🧪 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. |
This pull request updates the sky rendering logic in
Sky.hlslto improve how noise and color blending are handled, especially in relation to theENABLE_LLflag. The changes refine how noise gradients are applied and how vertex colors are computed for more accurate and flexible sky shading.Sky rendering improvements:
noiseGradvalue toinput.Color.xyzonly ifENABLE_LLis true, allowing for more control over color blending in different rendering modes.ENABLE_LL, ensuring that noise is only applied when appropriate.TEXflag is not defined, the noise gradient is now added directly to the input color before callingColor::Sky, changing the order of operations for improved gradient smoothing.Summary by CodeRabbit