From 46dfb3990aa247d9406704d13f2d6734d7d31a72 Mon Sep 17 00:00:00 2001 From: SUNAG Date: Tue, 29 Dec 2015 16:40:50 -0200 Subject: [PATCH] add sqrt and fix getType --- examples/js/nodes/math/Math1Node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/js/nodes/math/Math1Node.js b/examples/js/nodes/math/Math1Node.js index 2c151384d0..422f2cce1b 100644 --- a/examples/js/nodes/math/Math1Node.js +++ b/examples/js/nodes/math/Math1Node.js @@ -18,7 +18,8 @@ THREE.Math1Node.EXP = 'exp'; THREE.Math1Node.EXP2 = 'exp2'; THREE.Math1Node.LOG = 'log'; THREE.Math1Node.LOG2 = 'log2'; -THREE.Math1Node.INVERSE_SQRT = 'inversesqrt'; +THREE.Math1Node.SQRT = 'sqrt'; +THREE.Math1Node.INV_SQRT = 'inversesqrt'; THREE.Math1Node.FLOOR = 'floor'; THREE.Math1Node.CEIL = 'ceil'; THREE.Math1Node.NORMALIZE = 'normalize'; @@ -42,7 +43,7 @@ THREE.Math1Node.prototype.constructor = THREE.Math1Node; THREE.Math1Node.prototype.getType = function( builder ) { switch ( this.method ) { - case THREE.Math1Node.DISTANCE: + case THREE.Math1Node.LENGTH: return 'fv1'; } -- GitLab