BooleanKeyframeTrack.js 809 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. *
  3. * A Track of Boolean keyframe values.
  4. *
  5. *
  6. * @author Ben Houston / http://clara.io/
  7. * @author David Sarno / http://lighthaus.us/
  8. * @author tschw
  9. */
  10. THREE.BooleanKeyframeTrack = function ( name, times, values ) {
  11. THREE.KeyframeTrack.call( this, name, times, values );
  12. };
  13. THREE.BooleanKeyframeTrack.prototype =
  14. Object.assign( Object.create( THREE.KeyframeTrack.prototype ), {
  15. constructor: THREE.BooleanKeyframeTrack,
  16. ValueTypeName: 'bool',
  17. ValueBufferType: Array,
  18. DefaultInterpolation: THREE.IntepolateDiscrete,
  19. InterpolantFactoryMethodLinear: undefined,
  20. InterpolantFactoryMethodSmooth: undefined
  21. // Note: Actually this track could have a optimized / compressed
  22. // representation of a single value and a custom interpolant that
  23. // computes "firstValue ^ isOdd( index )".
  24. } );