material: false leaves Phong and Gouraud lighting enabled
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #11058 by @ibgreen — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- data-visualization, frontend
Research direction
Start by tracing LightingEffect.getShaderModuleProps() and how its material props reach luma's ShaderInputs.setProps(); inspect the tests for both Phong and Gouraud material modules. Confirm that material: false produces unlit uniforms and that switching back restores lit materials. The issue links closed pull request #11058, so check its changes and discussion before picking up work.
Written by the indexing model from the issue text.
Description
material: false leaves lighting enabled with the current luma material modules. In the Antarctica raster projection lab, the intended unlit raster is darkened and shows a narrow specular stripe.
Reproduction: https://visgl.github.io/math.gl/next/examples/raster-projection-lab
LightingEffect.getShaderModuleProps() forwards the boolean to phongMaterial and gouraudMaterial. Luma's ShaderInputs.setProps() converts falsy props to {}, restoring material defaults (unlit: false). The expected behavior is an unlit surface.
A browser-only substitution of material: {unlit: true} removes the stripe without changing texture, UVs, positions, or triangle indices. Both preparation paths retain their original 220 and 116 triangles. Earcut is unrelated to this artifact.
Deck should normalize material: false to {unlit: true} for both material modules and test the resulting luma uniforms, including switching back to lit materials.
- Dominant language
- TypeScript
- Stars
- 14.8k
- Forks
- 2.3k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 230
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from visgl/deck.gl
-
[Bug] Tile3DLayer selects no tiles until the camera moves when tileset.json loads right after a layer updatePossibly taken @lee3Q claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Bug] SplitterWidget calls onDragStart on drag end; Deck._getViews writes into the app's views arrayPossibly taken @04jennet-coder claimed this 20 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] WMSLayer positions EPSG:4326 images as CARTESIANPossibly taken @athomct claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Bug] MapLibreOverlay under React StrictMode: 'WebGL context already attached to device' because the attach path omits _reuseDevicesPossibly taken @jsve claimed this 84 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
visgl/deck.gl#10681 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
accessibility area:ci ci-test level:low priority:high type:test
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
skytuhua-org/Gen-V1#3132 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
drmrd/vernacular#1238 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement migration-prioritized
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Hudson-Pufferfish/local-party-console#136 ·
Maintainers usually reply within 1 day
-
priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day