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 00ee0b3 commit 4ba585cCopy full SHA for 4ba585c
examples/jsm/renderers/webgl/utils/WebGLTextureUtils.js
@@ -183,7 +183,12 @@ class WebGLTextureUtils {
183
}
184
185
gl.texParameteri( textureType, gl.TEXTURE_MAG_FILTER, filterToGL[ texture.magFilter ] );
186
- gl.texParameteri( textureType, gl.TEXTURE_MIN_FILTER, filterToGL[ texture.minFilter ] );
+
187
188
+ // follow WebGPU backend mapping for texture filtering
189
+ const minFilter = texture.minFilter === LinearFilter ? LinearMipmapLinearFilter : texture.minFilter;
190
191
+ gl.texParameteri( textureType, gl.TEXTURE_MIN_FILTER, filterToGL[ minFilter ] );
192
193
if ( texture.compareFunction ) {
194
0 commit comments