[PR #919] [MERGED] Fix Game Mode celestial weather overlay #4838

Closed
opened 2026-10-22 04:11:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/919
Author: @cha1latte
Created: 5/16/2026
Status: ✅ Merged
Merged: 5/16/2026
Merged by: @cha1latte

Base: staging ← Head: fix/game-sun-overlay


📝 Commits (1)

  • 8b5366c Fix Game Mode celestial weather overlay

📊 Changes

6 files changed (+11 additions, -5 deletions)

View changed files

➕ docs/pr-evidence/game-sun-overlay/after-night.png (+0 -0)
➕ docs/pr-evidence/game-sun-overlay/after.png (+0 -0)
➕ docs/pr-evidence/game-sun-overlay/before.png (+0 -0)
➕ docs/pr-evidence/game-sun-overlay/roleplay-sun.png (+0 -0)
📝 packages/client/src/components/chat/WeatherEffects.tsx (+6 -4)
📝 packages/client/src/components/game/GameSurface.tsx (+5 -1)

📄 Description

Linked issue

No linked issue; bug was reported directly to Codex from a screenshot. An issue should be opened before submission if the team wants a tracked issue for this visual bug.

Why this change

  • Game Mode was drawing a separate weather-effects sun over full scene background artwork. On snowy or already-composed backgrounds, that extra celestial overlay looked disconnected from the image lighting and horizon.

What changed

  • Added a showCelestial option to the shared WeatherEffects canvas, defaulting to the existing behavior.
  • Disabled celestial-body rendering only for Game Mode weather effects, while keeping particles and tints active.
  • Added reviewer-visible before/after and edge-case screenshots under docs/pr-evidence/game-sun-overlay/.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran an isolated local Marinara dev server from this branch on a throwaway data set.
  • Codex reproduced the original Game Mode issue in Chrome/CDP with a clear 15:00 winter background: the extra sun rendered over the background.
  • Codex re-ran the same Game Mode repro after the fix: the extra sun no longer rendered, and the weather canvas still mounted.
  • Codex checked a Game Mode clear-night edge case: no moon/celestial body rendered over the scene background.
  • Codex checked a Roleplay clear-day edge case: the shared WeatherEffects default still renders the sun outside Game Mode.
  • Codex ran pnpm check; it passed.
  • Bunny review passed for the current diff before opening this PR.
  • No manual human-only verification is required for the core claim; the visual behavior was verified locally with real app screenshots.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Before, Game Mode clear daytime draws a separate sun over the winter background:

Game Mode before: sun overlay

After, the same Game Mode state keeps the background clean:

Game Mode after: no sun overlay

Game Mode clear-night edge case, with moon/celestial overlay also suppressed:

Game Mode clear-night edge case

Roleplay keeps the shared default celestial effect:

Roleplay still shows default WeatherEffects sun


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/919 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/16/2026 **Status:** ✅ Merged **Merged:** 5/16/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/game-sun-overlay` --- ### 📝 Commits (1) - [`8b5366c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8b5366c521e031773fdb7b6e08c0154d5e13474f) Fix Game Mode celestial weather overlay ### 📊 Changes **6 files changed** (+11 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/game-sun-overlay/after-night.png` (+0 -0) ➕ `docs/pr-evidence/game-sun-overlay/after.png` (+0 -0) ➕ `docs/pr-evidence/game-sun-overlay/before.png` (+0 -0) ➕ `docs/pr-evidence/game-sun-overlay/roleplay-sun.png` (+0 -0) 📝 `packages/client/src/components/chat/WeatherEffects.tsx` (+6 -4) 📝 `packages/client/src/components/game/GameSurface.tsx` (+5 -1) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> No linked issue; bug was reported directly to Codex from a screenshot. An issue should be opened before submission if the team wants a tracked issue for this visual bug. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Game Mode was drawing a separate weather-effects sun over full scene background artwork. On snowy or already-composed backgrounds, that extra celestial overlay looked disconnected from the image lighting and horizon. ## What changed <!-- List the key changes in this PR --> - Added a `showCelestial` option to the shared `WeatherEffects` canvas, defaulting to the existing behavior. - Disabled celestial-body rendering only for Game Mode weather effects, while keeping particles and tints active. - Added reviewer-visible before/after and edge-case screenshots under `docs/pr-evidence/game-sun-overlay/`. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran an isolated local Marinara dev server from this branch on a throwaway data set. - Codex reproduced the original Game Mode issue in Chrome/CDP with a clear 15:00 winter background: the extra sun rendered over the background. - Codex re-ran the same Game Mode repro after the fix: the extra sun no longer rendered, and the weather canvas still mounted. - Codex checked a Game Mode clear-night edge case: no moon/celestial body rendered over the scene background. - Codex checked a Roleplay clear-day edge case: the shared `WeatherEffects` default still renders the sun outside Game Mode. - Codex ran `pnpm check`; it passed. - Bunny review passed for the current diff before opening this PR. - No manual human-only verification is required for the core claim; the visual behavior was verified locally with real app screenshots. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before, Game Mode clear daytime draws a separate sun over the winter background: ![Game Mode before: sun overlay](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8b5366c521e031773fdb7b6e08c0154d5e13474f/docs/pr-evidence/game-sun-overlay/before.png) After, the same Game Mode state keeps the background clean: ![Game Mode after: no sun overlay](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8b5366c521e031773fdb7b6e08c0154d5e13474f/docs/pr-evidence/game-sun-overlay/after.png) Game Mode clear-night edge case, with moon/celestial overlay also suppressed: ![Game Mode clear-night edge case](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8b5366c521e031773fdb7b6e08c0154d5e13474f/docs/pr-evidence/game-sun-overlay/after-night.png) Roleplay keeps the shared default celestial effect: ![Roleplay still shows default WeatherEffects sun](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8b5366c521e031773fdb7b6e08c0154d5e13474f/docs/pr-evidence/game-sun-overlay/roleplay-sun.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4838
No description provided.