We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d77e0c commit 2fd4d30Copy full SHA for 2fd4d30
src/utils/material.js
@@ -52,6 +52,7 @@ export function setTextureProperties (texture, data) {
52
texture.wrapT = wrapT;
53
texture.magFilter = magFilter;
54
texture.minFilter = minFilter;
55
+ texture.generateMipmaps = minFilter !== THREE.NearestFilter && minFilter !== THREE.LinearFilter;
56
texture.anisotropy = anisotropy;
57
texture.needsUpdate = true;
58
}
0 commit comments