Browse Source

Deprecated GLTFLoader.Shaders. See #10851.

Mr.doob 8 years ago
parent
commit
1573bc73ee
2 changed files with 10 additions and 6 deletions
  1. 0 4
      examples/js/loaders/GLTF2Loader.js
  2. 10 2
      examples/js/loaders/GLTFLoader.js

+ 0 - 4
examples/js/loaders/GLTF2Loader.js

@@ -154,10 +154,6 @@ THREE.GLTF2Loader = ( function () {
 
 	}
 
-	/* GLTFSHADERS */
-
-	GLTF2Loader.Shaders = new GLTFRegistry();
-
 	/* GLTFSHADER */
 
 	function GLTFShader( targetNode, allNodes ) {

+ 10 - 2
examples/js/loaders/GLTFLoader.js

@@ -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.' );
 
 							}