FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Set texture.generateMipmaps according to specified minFilter by vincentfretin · Pull Request #5726 · aframevr/aframe · GitHub

Set texture.generateMipmaps according to specified minFilter - #5726

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:set-generateMipmaps
May 27, 2025
Merged

Set texture.generateMipmaps according to specified minFilter#5726
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:set-generateMipmaps

Conversation

Copy link
Copy Markdown
Contributor

Description:

Set texture.generateMipmaps according to specified minFilter.
Since mrdoob/three.js#29677 that's included since three r170 you need to set texture.generateMipmaps to false explicitly if using minFilter 'linear' or 'nearest' to not generate mipmaps.

Changes proposed:

  • add texture.generateMipmaps = minFilter !== THREE.NearestFilter && minFilter !== THREE.LinearFilter;

mrxz commented May 24, 2025

Copy link
Copy Markdown
Contributor

Change looks good to me. Especially now that we explicitly expose mag/minFilter as properties, it's nice to avoid generating mipmaps when we know they aren't needed.

dmarcos commented May 27, 2025

Copy link
Copy Markdown
Member

Thank you

dmarcos merged commit 2fd4d30 into aframevr:master May 27, 2025
vincentfretin deleted the set-generateMipmaps branch May 27, 2025 06:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL