Clock => Timer r183

I use it this way:

const clock = new THREE.Timer(); // force of habit to have 'clock' :)
let t = 0;

...
// in the beginning of animation loop
  clock.update();
  const dt = clock.getDelta();
  t += dt;

For example, here: Crisp Style [deforming and postprocessing]

3 Likes