Browse Source

Add comment about techniques to GLTF2Loader

Takahiro 8 years ago
parent
commit
0d40bfdac2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/js/loaders/GLTF2Loader.js

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

@@ -1668,6 +1668,12 @@ THREE.GLTF2Loader = ( function () {
 
 					materialType = DeferredShaderMaterial;
 
+					// I've left the existing json.techniques code as is so far though
+					// techniques is moved to extension in glTF 2.0 because
+					// it seems there still be many models which have techniques under json.
+					// I'm gonna move the techniques code into GLTFTechniqueWebglExtension
+					// when glTF 2.0 release is officially announced.
+
 					var extension = extensions[ EXTENSIONS.KHR_TECHNIQUE_WEBGL ];
 
 					var techniques = extension !== undefined ? extension.techniques : json.techniques;