Three.js:WebGL:INVALID_VALUE:texImage2D:width!=立方体贴图的高度

时间:2015-09-19 13:47:11

标签: javascript three.js

  

错误: WebGL:INVALID_VALUE:texImage2D:width!=多维数据集地图的高度

这是我的代码的一部分:

var path = "/Content/wallerpaper/";
            var format = '.jpg';
            var urls = [
                path + '1' + format, path + '2' + format,
                path + '3' + format, path + '4' + format,
                path + '5' + format, path + '6' + format
            ];

            var textureCube = THREE.ImageUtils.loadTextureCube(urls, THREE.CubeRefractionMapping);

            textureCube.minFilter = THREE.NearestFilter;

            var material = new THREE.MeshBasicMaterial( { color: 0xffffff, envMap: textureCube, refractionRatio: 0.95 } );

如何解决没有更改我的图片尺寸?

0 个答案:

没有答案