Explorar o código

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

Map glTF STEP interpolation to THREE.InterpolateDiscrete
Mr.doob %!s(int64=8) %!d(string=hai) anos
pai
achega
c2be5f5aba
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 */