mirror of
https://github.com/SamEyeBam/animate.git
synced 2026-02-06 02:10:04 +00:00
larry babby and threejs for glsl
This commit is contained in:
19
webGl/my-threejs-test/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js
generated
vendored
Normal file
19
webGl/my-threejs-test/node_modules/three/src/animation/tracks/BooleanKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { InterpolateDiscrete } from '../../constants.js';
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
|
||||
/**
|
||||
* A Track of Boolean keyframe values.
|
||||
*/
|
||||
class BooleanKeyframeTrack extends KeyframeTrack {}
|
||||
|
||||
BooleanKeyframeTrack.prototype.ValueTypeName = 'bool';
|
||||
BooleanKeyframeTrack.prototype.ValueBufferType = Array;
|
||||
BooleanKeyframeTrack.prototype.DefaultInterpolation = InterpolateDiscrete;
|
||||
BooleanKeyframeTrack.prototype.InterpolantFactoryMethodLinear = undefined;
|
||||
BooleanKeyframeTrack.prototype.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 )".
|
||||
|
||||
export { BooleanKeyframeTrack };
|
||||
15
webGl/my-threejs-test/node_modules/three/src/animation/tracks/ColorKeyframeTrack.js
generated
vendored
Normal file
15
webGl/my-threejs-test/node_modules/three/src/animation/tracks/ColorKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
|
||||
/**
|
||||
* A Track of keyframe values that represent color.
|
||||
*/
|
||||
class ColorKeyframeTrack extends KeyframeTrack {}
|
||||
|
||||
ColorKeyframeTrack.prototype.ValueTypeName = 'color';
|
||||
// ValueBufferType is inherited
|
||||
// DefaultInterpolation is inherited
|
||||
|
||||
// Note: Very basic implementation and nothing special yet.
|
||||
// However, this is the place for color space parameterization.
|
||||
|
||||
export { ColorKeyframeTrack };
|
||||
12
webGl/my-threejs-test/node_modules/three/src/animation/tracks/NumberKeyframeTrack.js
generated
vendored
Normal file
12
webGl/my-threejs-test/node_modules/three/src/animation/tracks/NumberKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
|
||||
/**
|
||||
* A Track of numeric keyframe values.
|
||||
*/
|
||||
class NumberKeyframeTrack extends KeyframeTrack {}
|
||||
|
||||
NumberKeyframeTrack.prototype.ValueTypeName = 'number';
|
||||
// ValueBufferType is inherited
|
||||
// DefaultInterpolation is inherited
|
||||
|
||||
export { NumberKeyframeTrack };
|
||||
23
webGl/my-threejs-test/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js
generated
vendored
Normal file
23
webGl/my-threejs-test/node_modules/three/src/animation/tracks/QuaternionKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import { InterpolateLinear } from '../../constants.js';
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
import { QuaternionLinearInterpolant } from '../../math/interpolants/QuaternionLinearInterpolant.js';
|
||||
|
||||
/**
|
||||
* A Track of quaternion keyframe values.
|
||||
*/
|
||||
class QuaternionKeyframeTrack extends KeyframeTrack {
|
||||
|
||||
InterpolantFactoryMethodLinear( result ) {
|
||||
|
||||
return new QuaternionLinearInterpolant( this.times, this.values, this.getValueSize(), result );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
QuaternionKeyframeTrack.prototype.ValueTypeName = 'quaternion';
|
||||
// ValueBufferType is inherited
|
||||
QuaternionKeyframeTrack.prototype.DefaultInterpolation = InterpolateLinear;
|
||||
QuaternionKeyframeTrack.prototype.InterpolantFactoryMethodSmooth = undefined;
|
||||
|
||||
export { QuaternionKeyframeTrack };
|
||||
15
webGl/my-threejs-test/node_modules/three/src/animation/tracks/StringKeyframeTrack.js
generated
vendored
Normal file
15
webGl/my-threejs-test/node_modules/three/src/animation/tracks/StringKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { InterpolateDiscrete } from '../../constants.js';
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
|
||||
/**
|
||||
* A Track that interpolates Strings
|
||||
*/
|
||||
class StringKeyframeTrack extends KeyframeTrack {}
|
||||
|
||||
StringKeyframeTrack.prototype.ValueTypeName = 'string';
|
||||
StringKeyframeTrack.prototype.ValueBufferType = Array;
|
||||
StringKeyframeTrack.prototype.DefaultInterpolation = InterpolateDiscrete;
|
||||
StringKeyframeTrack.prototype.InterpolantFactoryMethodLinear = undefined;
|
||||
StringKeyframeTrack.prototype.InterpolantFactoryMethodSmooth = undefined;
|
||||
|
||||
export { StringKeyframeTrack };
|
||||
12
webGl/my-threejs-test/node_modules/three/src/animation/tracks/VectorKeyframeTrack.js
generated
vendored
Normal file
12
webGl/my-threejs-test/node_modules/three/src/animation/tracks/VectorKeyframeTrack.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { KeyframeTrack } from '../KeyframeTrack.js';
|
||||
|
||||
/**
|
||||
* A Track of vectored keyframe values.
|
||||
*/
|
||||
class VectorKeyframeTrack extends KeyframeTrack {}
|
||||
|
||||
VectorKeyframeTrack.prototype.ValueTypeName = 'vector';
|
||||
// ValueBufferType is inherited
|
||||
// DefaultInterpolation is inherited
|
||||
|
||||
export { VectorKeyframeTrack };
|
||||
Reference in New Issue
Block a user