Skip to content

feat(core): honor Deck normalized colors for lighting - #11171

Merged
ibgreen merged 2 commits into
masterfrom
codex/normalized-lighting
Nov 18, 2026
Merged

ibgreen merged 2 commits into
masterfrom
codex/normalized-lighting

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • yarn lint
  • Targeted headless regression covers defaults, ambient, directional and projected point lights, and live toggles.

Note

Low Risk
Low risk change scoped to color normalization in LightingEffect that only alters behavior when normalizedColors is explicitly enabled.

Overview
Adds support for Deck's normalizedColors setting across lighting sources (AmbientLight, DirectionalLight, PointLight, and SunLight).

When normalizedColors is enabled in layer.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 normalizedColors is active.

Reviewed by Cursor Bugbot for commit 29a0054. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T23:20:31.320628Z 983d0f7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibgreen ibgreen mentioned this pull request Nov 17, 2026
22 of 52 tasks
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Custom light colors now follow Deck’s normalizedColors setting while built-in white lights and shadow tints keep their existing behavior.

  • Light colors now follow Deck’s normalized color setting.

No new issues found in the follow-up changes.

Reviews (2) · Last reviewed commit: "docs(core): describe normalized SunLight..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.731% (+0.004%) from 82.727% — codex/normalized-lighting into master

@ibgreen
ibgreen merged commit 2d62550 into master Nov 18, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/normalized-lighting branch November 18, 2026 00:05

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

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.

3 participants