提交 1573bc73 编写于 作者: M Mr.doob

Deprecated GLTFLoader.Shaders. See #10851.

上级 10a53fe7
......@@ -154,10 +154,6 @@ THREE.GLTF2Loader = ( function () {
}
/* GLTFSHADERS */
GLTF2Loader.Shaders = new GLTFRegistry();
/* GLTFSHADER */
function GLTFShader( targetNode, allNodes ) {
......
......@@ -155,7 +155,15 @@ THREE.GLTFLoader = ( function () {
/* GLTFSHADERS */
GLTFLoader.Shaders = new GLTFRegistry();
GLTFLoader.Shaders = {
update: function () {
console.warn( 'THREE.GLTFLoader.Shaders has been deprecated, and now updates automatically.' );
}
};
/* GLTFSHADER */
......@@ -1100,7 +1108,7 @@ THREE.GLTFLoader = ( function () {
if ( texture.internalFormat !== undefined && _texture.format !== WEBGL_TEXTURE_FORMATS[ texture.internalFormat ] ) {
console.warn( 'THREE.GLTFLoader: Three.js doesn\'t support texture internalFormat which is different from texture format. ' +
'internalFormat will be forced to be the same value as format.' );
'internalFormat will be forced to be the same value as format.' );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册