Skip to content

fix(examples): pass FilterNoDataVal's value prop in sentinel-2 - #730

Merged
kylebarron merged 1 commit into
mainfrom
kyle/sentinel-2-nodata-prop
Oct 16, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/sentinel-2-nodata-prop

Conversation

@kylebarron

Copy link
Copy Markdown
Member

Note

This PR was written by Claude (Claude Code), not by @kylebarron.

The sentinel-2 example passed { noDataValue: 0 } to FilterNoDataVal, whose prop is value. The prop was ignored: getUniforms returned value: undefined, luma.gl skips undefined uniform values, and the uniform stayed at its initial 0, so nodata pixels were discarded only by accident. The example now passes { value: 0 }, so it works as written and is safe to copy with another nodata value.

The renderPipeline props type doesn't check prop names per module, which is why TypeScript didn't catch this. The example renders pixel-identical screenshots in Chrome before and after.

🤖 Written by Claude Code

The sentinel-2 example passed `{ noDataValue: 0 }` to FilterNoDataVal,
whose prop is `value`. The prop was ignored, and nodata pixels were only
discarded because the unset uniform stays 0. Pass `value: 0`, so the
example works as written and is safe to copy with another nodata value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the fix label Oct 16, 2026
@kylebarron
kylebarron merged commit 0f44e0b into main Oct 16, 2026
3 checks passed
@kylebarron
kylebarron deleted the kyle/sentinel-2-nodata-prop branch October 16, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant