Parcourir la source

Merge pull request #10308 from donmccurdy/feat-gltf-step-interpolation

Map glTF STEP interpolation to THREE.InterpolateDiscrete
Mr.doob il y a 8 ans
Parent
commit
c2be5f5aba
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      examples/js/loaders/GLTFLoader.js

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

@@ -359,7 +359,8 @@ THREE.GLTFLoader = ( function () {
 	};
 
 	var INTERPOLATION = {
-		LINEAR: THREE.InterpolateLinear
+		LINEAR: THREE.InterpolateLinear,
+		STEP: THREE.InterpolateDiscrete
 	};
 
 	/* UTILITY FUNCTIONS */