Repository navigation
fix(core): disable lighting in ShadowPass - #10890
Merged
Merged
Conversation
SimpleMeshLayer applies Phong lighting after DECKGL_FILTER_COLOR, where the shadow module writes the RGBA-packed depth. In the shadow pass the stored depth was therefore scaled by the lighting factor (0.77 with the default material and a 45 degree light), and every lit SimpleMeshLayer fell inside its own shadow. Disable the lighting module in the shadow pass, as PickLayersPass already does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (3) · Last reviewed commit: "Merge branch 'master' into fix/shadow-pa..." · Reviewed by Greptile |
ibgreen
approved these changes
Oct 22, 2026
ibgreen
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed; the ShadowPass lighting fix is ready to approve.
This was referenced Oct 26, 2026
chrisgervang
pushed a commit
that referenced
this pull request
Oct 26, 2026
SimpleMeshLayer applies Phong lighting after DECKGL_FILTER_COLOR, where the shadow module writes the RGBA-packed depth. In the shadow pass the stored depth was therefore scaled by the lighting factor (0.77 with the default material and a 45 degree light), and every lit SimpleMeshLayer fell inside its own shadow. Disable the lighting module in the shadow pass, as PickLayersPass already does. Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit a9a1790)
7 tasks
Collaborator
|
Released in deck.gl 9.4.1. Thanks @charlieforward9! |
29 of 30 tasks
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.
Closes #10887
Introduced by #7605
Background
SimpleMeshLayerlights its color afterDECKGL_FILTER_COLOR. In the shadow pass, that filter is where the shadow module writes the depth, so lighting scales the stored depth and lit meshes shadow themselves. This PR disables lighting inShadowPass, asPickLayersPassalready does. Reordering the shader instead would break TerrainExtension's lit drape (#7605).Change List
ShadowPass: disable the lighting moduleshadow-effect-simple-meshwith new golden imageTop left: master. Bottom right: this PR. The other two panels are the existing workarounds.
Both new tests fail on master.
🤖 Generated with Claude Code