Repository navigation
feat(core): honor normalizedColors for view clear colors - #11149
Merged
Merged
Conversation
22 of 52 tasks
[Medium impact] The PR appears safe to merge. SummaryExtends
Reviews (2) · Last reviewed commit: "docs(core): describe the renderer clear-..." · Reviewed by Greptile |
chrisgervang
approved these changes
Nov 16, 2026
chrisgervang
left a comment
Collaborator
There was a problem hiding this comment.
Left one comment about supporting explicit zero alpha.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #11146
Background
View clear colors use byte channels even when Deck opts into normalized colors. Apply the Deck setting to view clears during rendering while preserving the legacy byte alpha fallback and picking behavior.
Change List
Verified with
yarn lintand 11 focused Chromium tests.Note
Low Risk
Low risk changes extending an optional color normalization flag to view clear colors while preserving default byte-color behavior.
Overview
Extends Deck's
normalizedColorsoption toViewclear colors, allowingclearColorchannels to be specified in the 0–1 range.When
normalizedColorsis enabled, omitted alpha inclearColordefaults to 1 (opaque) while explicit zero alpha is preserved as transparent. In legacy mode, channels remain 0–255 with zero alpha falling back to opaque. The setting is passed throughDeckRendererandLayersPassduring rendering, leaving picking buffers unaffected.Reviewed by Cursor Bugbot for commit 6680f7c. Bugbot is set up for automated code reviews on this repo. Configure here.