NPS*_*NPS 7 textures google-chrome webgl
页面:http://nps.netarteria.pl/gallery/
我正在关注本教程:https://developer.mozilla.org/en-US/docs/WebGL/Animating_textures_in_WebGL但我的chrome(在检查模式下)显示了这一点警告:58RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'.但是,我正在使用正确的过滤(非纹理贴图),所以我不知道什么是错的.同时注意两个视频中像素的底线 - 它已拉长,我不确定这是否相关.
小智 7
我的视频纹理有同样的问题.你需要做的是避免在纹理不是2的幂时使用mipmap,默认情况下启用它:
_tmpTex.generateMipmaps = false;
_tmpTex.minFilter = THREE.LinearFilter;
_tmpTex.magFilter = THREE.LinearFilter;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11173 次 |
| 最近记录: |