From 6d459b59c729da338a832ea3db3b28da6d5aeedc Mon Sep 17 00:00:00 2001 From: Renaud Rohlinger Date: Wed, 2 Apr 2025 18:13:08 +0900 Subject: [PATCH] TextureNode: Fix .blur() on Framebuffer --- src/nodes/accessors/TextureNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/accessors/TextureNode.js b/src/nodes/accessors/TextureNode.js index d56353f9807b22..5881842ae0f1af 100644 --- a/src/nodes/accessors/TextureNode.js +++ b/src/nodes/accessors/TextureNode.js @@ -564,7 +564,7 @@ class TextureNode extends UniformNode { const map = textureNode.value; - if ( map && map.generateMipmaps === false || map.minFilter === NearestFilter || map.magFilter === NearestFilter ) { + if ( textureNode.generateMipmaps === false && ( map && map.generateMipmaps === false || map.minFilter === NearestFilter || map.magFilter === NearestFilter ) ) { console.warn( 'THREE.TSL: texture().blur() requires mipmaps and sampling. Use .generateMipmaps=true and .minFilter/.magFilter=THREE.LinearFilter in the Texture.' );