How to use the InterpolateDiscrete function from three

Find comprehensive JavaScript three.InterpolateDiscrete code examples handpicked from public code repositorys.

1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
const INTERPOLATION = {
    CUBICSPLINE: undefined,
    // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
    // keyframe track will be initialized with a default interpolation type, then modified.
    LINEAR: THREE.InterpolateLinear,
    STEP: THREE.InterpolateDiscrete
};
const ALPHA_MODES = {
    OPAQUE: 'OPAQUE',
    MASK: 'MASK',
fork icon2
star icon10
watch icon0

1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
    weights: 'morphTargetInfluences'
};
const INTERPOLATION = {
    CUBICSPLINE: undefined,
    LINEAR: three.InterpolateLinear,
    STEP: three.InterpolateDiscrete
};
const ALPHA_MODES = {
    OPAQUE: 'OPAQUE',
    MASK: 'MASK',
fork icon2
star icon7
watch icon0

1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
var INTERPOLATION = {
  CUBICSPLINE: undefined,
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
  // keyframe track will be initialized with a default interpolation type, then modified.
  LINEAR: _three.InterpolateLinear,
  STEP: _three.InterpolateDiscrete
};
var ALPHA_MODES = {
  OPAQUE: 'OPAQUE',
  MASK: 'MASK',
fork icon0
star icon1
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)