Repository navigation
feat(core): honor Deck normalized colors for lighting - #11171
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Medium impact] The PR appears safe to merge. SummaryCustom light colors now follow Deck’s
No new issues found in the follow-up changes. Reviews (2) · Last reviewed commit: "docs(core): describe normalized SunLight..." · Reviewed by Greptile |
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 29a0054 after merge; recommend approval. No P1s. Default light colors stay bytes by identity, and a Deck toggle applies on the next draw.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
For #11146. Light uniforms honor the Deck convention for custom ambient, directional and point-light RGB arrays. Keep default light colors and normalized shadow tints compatible.
Validation
Note
Low Risk
Low risk change scoped to color normalization in
LightingEffectthat only alters behavior whennormalizedColorsis explicitly enabled.Overview
Adds support for Deck's
normalizedColorssetting across lighting sources (AmbientLight,DirectionalLight,PointLight, andSunLight).When
normalizedColorsis enabled inlayer.context, custom light color arrays with 0–1 channels are passed directly to shader uniforms rather than being divided by 255. Built-in default light colors remain in 0–255 byte format and continue to be normalized automatically.Documentation and API reference files have also been updated to document the 0–1 channel convention when
normalizedColorsis active.Reviewed by Cursor Bugbot for commit 29a0054. Bugbot is set up for automated code reviews on this repo. Configure here.