For some background, priorities, and current implementation, see the Runtime Mipmap Generation blog post.
Currently spark allows two choices: a 4x4 magic-kernel-sharp, and a simple box filter. In both cases filtering is done in linear space. Note, the magic kernel is only available in WebGPU and it's not available in Firefox due to Bugzilla issue #1977241.
Also, the magic kernel is avoided when the texture is alpha in favor of an alpha weighted box kernel. The negative lobes in the magic kernel can cause the filtered alpha to be close to 0 or negative, in this causes artifacts when undoing alpha pre-multiplication.
Potential improvements:
This issue is aimed at gathering feedback and prioritizing features. More ideas welcomed.
For some background, priorities, and current implementation, see the Runtime Mipmap Generation blog post.
Currently spark allows two choices: a 4x4 magic-kernel-sharp, and a simple box filter. In both cases filtering is done in linear space. Note, the magic kernel is only available in WebGPU and it's not available in Firefox due to Bugzilla issue #1977241.
Also, the magic kernel is avoided when the texture is alpha in favor of an alpha weighted box kernel. The negative lobes in the magic kernel can cause the filtered alpha to be close to 0 or negative, in this causes artifacts when undoing alpha pre-multiplication.
Potential improvements:
This issue is aimed at gathering feedback and prioritizing features. More ideas welcomed.