Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support anisotropic filtering and for limiting the maximum number of mipmaps #41

Conversation

BonsaiDen
Copy link

@BonsaiDen BonsaiDen commented Oct 25, 2024

Limiting the number of mip maps can be useful when dealing with large textures or ones that are updated every frame (e.g. shadow maps) to avoid performance overhead.

Anisotropic filtering requires an extension, however that is pretty much available everywhere and is also supported in WebGL / GL ES contexts.

See also the corresponding changes in three-d APIs here: asny/three-d#502

@asny
Copy link
Owner

asny commented Nov 20, 2024

I did it a bit differently in 5a5c1ec, collecting all of the mipmap settings in a separate struct, but otherwise, it's the same.

@asny asny closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants