Skip to content

fix!: Default to linear sampling for non-paletted COGs#514

Merged
kylebarron merged 2 commits into
mainfrom
kyle/linear-sampling
May 7, 2026
Merged

fix!: Default to linear sampling for non-paletted COGs#514
kylebarron merged 2 commits into
mainfrom
kyle/linear-sampling

Conversation

@kylebarron
Copy link
Copy Markdown
Member

@kylebarron kylebarron commented May 7, 2026

Closes #505

I think the existing code was a mistake. I think

// Use nearest filtering for the mask to avoid interpolated edges/halos
sampler: {
minFilter: "nearest",
magFilter: "nearest",
},

was always intended to be applied to the mask texture, but was being applied to the data texture instead

@kylebarron kylebarron changed the title Kyle/linear sampling fix!: Default to linear sampling for non-paletted COGs May 7, 2026
@kylebarron kylebarron enabled auto-merge (squash) May 7, 2026 19:34
@kylebarron kylebarron merged commit 4c0ae8e into main May 7, 2026
4 of 5 checks passed
@kylebarron kylebarron deleted the kyle/linear-sampling branch May 7, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

COGLayer: Whether to use linear or nearest sampling by default

1 participant