christopherbiscardi.github.com
christopherbiscardi.github.com copied to clipboard
/mipmaps
The mipmaps post is fine as an introductory resource, but skips a few topics. More can be written about:
near-term fixes
Images I used in the post are using Nearest sampling instead of Linear. Anisotropic forces linear through warnings, but the default for get_or_init_descriptor is nearest.
- [ ] wrapping/clamping/reflecting mipmap generation
- [ ] linear filtering for examples (bevy defaults to nearest)
longer term topics to cover
-
non-power-of-two mipmaps
-
mipmap scaling options
-
mipmaps for textures with alpha values
-
mipmaps for non-color data (normal maps, etc)
-
non "downscaling" use cases for mipmaps
- blur effects (or blurry reflections)
-
min/mag/mipmap filter options
it is legit to use mips with a texture where the mag filter is nearest so you get crisp squares when close and blending when far
- https://github.com/DGriffin91/bevy_blocky_sampling
-
linear everywhere but do a bit of fancy sampling to get AA on the hard edges - Griffin (bevy discord link)
-
-