英文:
Three.js GLB texture is blur not clear
问题
我正在尝试在我的项目中导入一个GLB模型。但是纹理模糊,有人可以帮忙吗?
您可以在这里找到代码。
我在以下查看器中看到了模型,纹理要清晰得多。
https://gltf-viewer.donmccurdy.com/
我还尝试添加了getMaxAnisotropy(),但也没有任何变化。
英文:
I am trying to import a GLB model in my project. But the texture is blur can someone help here.
You can find the code here.
I have seen the model in the following viewer and the texture is much clear.
https://gltf-viewer.donmccurdy.com/
I have also tried adding the getMaxAnisotropy() but it's also not making any difference.
答案1
得分: 1
明白。
基本上问题出在renderer.setSize( 640, 480 );
上。
只需将其更改为renderer.setSize( window.innerWidth, window.innerHeight );
就解决了问题。
英文:
Got it.
Basically the problem was with the renderer.setSize( 640, 480 );
Just changed it to renderer.setSize( window.innerWidth, window.innerHeight );
and it solved the problem.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论