/ JavaScript

Three.js贴图缩放模糊问题

问题

THREE.WebGLRenderer: image is not power of two (1638x2166). Resized to 1024x2048

如果你的素材尺寸不是2的N次方,控制台会报如下错误,需要配置以下参数

texture.generateMipmaps = false;
texture.wrapS = texture.wrapT = THREE.ClampToEdgeWrapping;
texture.minFilter = THREE.LinearFilter
Three.js贴图缩放模糊问题
分享