Implement ephemeral sun-direction overrides for lighting iteration#396
Implement ephemeral sun-direction overrides for lighting iteration#396drsnuggles8 wants to merge 2 commits into
Conversation
- Added `olo_scene_set_time_of_day` and `olo_scene_set_sun_angle` tools to adjust the procedural sky's sun direction without modifying the serialized component. - Introduced methods in `Renderer3D` to set and clear sun direction overrides. - Updated `Scene` and `McpServer` to handle sun direction overrides during play mode. - Enhanced unit tests for sun direction calculations and JSON output for overrides. - Documented new tools and their usage in the diagnostics server documentation.
|
Warning Review limit reached
More reviews will be available in 59 minutes and 11 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
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 |
- McpRenderOverridesTest: integer loop counter (cpp:S2193 reliability gate) - EditorLayer::SetEditorScene: clear ephemeral sun override on scene swap so a reload restores the authored sun (documented "resets on scene reload") - McpTools: extract shared ApplySunClear/ApplySunIntrospect helpers
🤖 Self-review (finish-pr) @
|
|
Tip For best results, initiate chat on the files or code changes.
Good catch on the edit-mode reload gap in particular; resetting the ephemeral sun override at the same scene-load choke point as the other renderer overrides is the right place for that behavior. ✏️ Learnings added
|
|



olo_scene_set_time_of_dayandolo_scene_set_sun_angletools to adjust the procedural sky's sun direction without modifying the serialized component.Renderer3Dto set and clear sun direction overrides.SceneandMcpServerto handle sun direction overrides during play mode.