Skip to content

Keep clearing room fog from the office seen from the rooftop - #393

Open
rjnetwork212 wants to merge 1 commit into
AgentSystemLabs:mainfrom
rjnetwork212:fix/392-roof-fog
Open

rjnetwork212 wants to merge 1 commit into
AgentSystemLabs:mainfrom
rjnetwork212:fix/392-roof-fog

Conversation

@rjnetwork212

Copy link
Copy Markdown

Summary

  • Fixes Rooftop: outdoor fog covers the office interior seen from above #392. From the rooftop bar, looking down through the office's open top, the office interior was covered by outdoor haze.
  • Sky.setRoof zeroed skyClearRooms together with skyInside. But skyInOffice is a world-space box test, so office-interior fragments below the roof kept getting full outdoor fog even though they are indoors.
  • setRoof now only zeroes skyInside (office/garage lamplight) and leaves skyClearRooms at 1, so room fog clearing stays on while on the roof. setIndoors (enclosed maps like the castle) still zeroes both, since those maps have no office/garage room boxes to clear. Regular office/garage floors are unchanged.

Tests

  • tests/sky-fog.test.ts now asserts the roof keeps skyClearRooms = 1 while skyInside = 0, and that enclosed maps still zero both.
  • npm run typecheck ✅
  • npm test ✅ (614 pass)
  • npm run build ✅
  • Headless-browser check with AGENT_OFFICE_WEATHER=fog, from the rooftop looking down over the edge: office-interior fragments render clear with this change, fully hazed without it.

…stemLabs#392)

Sky.setRoof zeroed skyClearRooms and skyInside together, so on the roof
office/garage fragments got the full outdoor haze even though the interior
below is still indoor. Zero only skyInside (lamplight) there; leave
skyClearRooms at 1 unless an enclosed map is in play. setIndoors still
zeroes both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rooftop: outdoor fog covers the office interior seen from above

1 participant