|
@@ -13,6 +13,7 @@ THREE.TimerNode = function ( scope, scale ) {
|
|
|
|
|
|
THREE.TimerNode.GLOBAL = 'global';
|
|
|
THREE.TimerNode.LOCAL = 'local';
|
|
|
+THREE.TimerNode.DELTA = 'delta';
|
|
|
|
|
|
THREE.TimerNode.prototype = Object.create( THREE.FloatNode.prototype );
|
|
|
THREE.TimerNode.prototype.constructor = THREE.TimerNode;
|
|
@@ -28,6 +29,12 @@ THREE.TimerNode.prototype.updateFrame = function ( frame ) {
|
|
|
|
|
|
break;
|
|
|
|
|
|
+ case THREE.TimerNode.DELTA:
|
|
|
+
|
|
|
+ this.number = frame.delta * this.scale;
|
|
|
+
|
|
|
+ break;
|
|
|
+
|
|
|
default:
|
|
|
|
|
|
this.number = frame.time * this.scale;
|