提交 92876d83 编写于 作者: M Mr.doob

Fixed more envMap breakage.

上级 54034067
......@@ -387,7 +387,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
}
texture.mapping = mapping;
if ( mapping !== undefined ) texture.mapping = mapping;
return texture;
......
......@@ -937,7 +937,9 @@ THREE.SceneLoader.prototype = {
if ( loader !== null ) {
texture = loader.load( url_array, generateTextureCallback( count ) );
texture.mapping = textureJSON.mapping;
if ( textureJSON.mapping !== undefined )
texture.mapping = textureJSON.mapping;
} else {
......@@ -977,7 +979,8 @@ THREE.SceneLoader.prototype = {
}
texture.mapping = textureJSON.mapping;
if ( textureJSON.mapping !== undefined )
texture.mapping = textureJSON.mapping;
if ( THREE[ textureJSON.minFilter ] !== undefined )
texture.minFilter = THREE[ textureJSON.minFilter ];
......
......@@ -104,8 +104,7 @@ THREE.WebGLProgram = ( function () {
envMapTypeDefine = "ENVMAP_TYPE_SPHERE";
break;
case THREE.UVMapping:
console.warn( 'THREE.WebGLProgram: envMap.mapping shouldn\'t be THREE.UVMapping. Using THREE.CubeReflectionMapping instead.')
default:
envMapTypeDefine = "ENVMAP_TYPE_CUBE";
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册