Переглянути джерело

GLTFLoader: Add comment for MultiMaterial

Takahiro 7 роки тому
батько
коміт
b986b36399
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      examples/js/loaders/GLTFLoader.js

+ 3 - 0
examples/js/loaders/GLTFLoader.js

@@ -1361,6 +1361,9 @@ THREE.GLTFLoader = ( function () {
 	 */
 	function isCombinable( primitives ) {
 
+		// Returns true if all primitives use the same attributes/morphAttributes/mode
+		// and also have index. Otherwise returns false.
+
 		var primitive0 = primitives[ 0 ];
 		var targets0 = primitive0.targets || [];