Conversation
ibgreen
commented
Apr 28, 2026
| blendAlphaOperation: 'add' | ||
| } | ||
| : {}; | ||
| if (getProjection(map) === 'globe') { |
Collaborator
Author
There was a problem hiding this comment.
@chrisgervang @felixpalmer @charlieforward9 this would presumably no longer be needed
charlieforward9
approved these changes
Apr 29, 2026
felixpalmer
reviewed
Apr 30, 2026
|
|
||
| #### `parameters` (object, optional) {#parameters} | ||
|
|
||
| `GlobeView` enables back-face culling by default with `parameters: {cullMode: 'back'}`. To override this behavior, supply the desired GPU parameters to the constructor: |
Collaborator
There was a problem hiding this comment.
I'm not sure we should be doing this, it is a workaround. At least in the long-term we should aspire to remove this as the correct fix is to correct the shader math: #9592 (comment)
Collaborator
There was a problem hiding this comment.
it is a workaround. At least in the long-term we should aspire to remove this as the correct fix is to correct the shader math
I would agree that another solution for GlobeView specifically would be preferable, however the feature in this PR is quite orthogonal: Deck parameters < View parameters < Layer parameters, so no harm in landing it now.
felixpalmer
approved these changes
Apr 30, 2026
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.
Summary
Adds a
parametersprop to deck.glViewclasses so GPU draw parameters can be configured per view.parameters?: ParameterstoCommonViewPropsDeck.parameters<View.parameters< layer/pass parametersGlobeViewdefaultparameters: {cullMode: 'back'}while allowing per-instance overridesTesting
git diff --checkyarn test test/modules/core/views/view.spec.ts test/modules/core/passes/layers-pass.spec.tsyarn lintyarn build