material: false leaves Phong and Gouraud lighting enabled

Open
#11,057 0 comments 0 reactions 0 assignees View on GitHub

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

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from visgl/deck.gl

All issues in visgl/deck.gl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.