-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for RGB color format #3338
Conversation
|
||
Setting it to `'RGB'` will make the layer ignore the alpha channel and assume `a: 255`. | ||
|
||
Default `'RGBA'`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3D tiles also have rgb565 color format. Do you think it could also be provided in deck.gl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that cannot be done without changing attribute generation.
|
||
Default `'XYZ'`. | ||
|
||
##### `colorFormat` (String, optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might simplify things to make these numbers, e.g. positionDimensions
and colorChannels
. Then setting the size would just be size: this.props.colorChannels
(with a default of 4). Also leaves the door open for passing fewer components (if that might ever be useful?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately positionFormat
has been a public API since v6. I can change the usage to size: this.props.colorFormat.length
though.
For #3197
There is a small save on resources, but this is most useful when using external buffers.
Change List
colorFormat
proppositionFormat
support inPolygonLayer