fix(render): update coastline color dynamically when ocean color changes#4377
fix(render): update coastline color dynamically when ocean color changes#4377berkelmali wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughIn ChangesDynamic Shoreline Color
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
fix(render): update coastline color dynamically when ocean color changes
Resolves #4329
Description:
Previously, the shoreline water color (
isShoreline && !isLand) was hardcoded to a static bright blue (rgb(100, 143, 255)) inencodeTerrainTile. When a user customized the ocean/water color in Settings, the deep ocean changed colors but the shoreline water remained bright blue, causing a jarred, visually mismatched appearance.This PR updates
encodeTerrainTileinColorUtils.tsto dynamically calculate the shoreline water color by scaling the configuredoceanColorchannels:1.4(clamped to255).1.08(clamped to255).This scales the coastline water color harmoniously alongside any custom water color settings (e.g. green, red, or dark ocean tones).
Please complete the following:
coastline_screenshot.pngshowing dynamic color integration)Please put your Discord username so you can be contacted if a bug or regression is found:
barfires