12345678910111213141516171819202122232425262728293031323334 |
- /**
- *
- * A Track of Boolean keyframe values.
- *
- *
- * @author Ben Houston / http://clara.io/
- * @author David Sarno / http://lighthaus.us/
- * @author tschw
- */
- THREE.BooleanKeyframeTrack = function ( name, times, values ) {
- THREE.KeyframeTrack.call( this, name, times, values );
- };
- THREE.BooleanKeyframeTrack.prototype =
- Object.assign( Object.create( THREE.KeyframeTrack.prototype ), {
- constructor: THREE.BooleanKeyframeTrack,
- ValueTypeName: 'bool',
- ValueBufferType: Array,
- DefaultInterpolation: THREE.IntepolateDiscrete,
- InterpolantFactoryMethodLinear: undefined,
- InterpolantFactoryMethodSmooth: undefined
- // Note: Actually this track could have a optimized / compressed
- // representation of a single value and a custom interpolant that
- // computes "firstValue ^ isOdd( index )".
- } );
|