aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/twist-vert-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/twist-vert-material.js')
-rw-r--r--js/lib/rdge/materials/twist-vert-material.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/rdge/materials/twist-vert-material.js b/js/lib/rdge/materials/twist-vert-material.js
index 6ab2662e..1c04a90c 100644
--- a/js/lib/rdge/materials/twist-vert-material.js
+++ b/js/lib/rdge/materials/twist-vert-material.js
@@ -61,7 +61,7 @@ var TwistVertMaterial = function TwistVertMaterial()
61 this.isAnimated = function () { return true; }; 61 this.isAnimated = function () { return true; };
62 this.getShaderDef = function() { return twistVertShaderDef; }; 62 this.getShaderDef = function() { return twistVertShaderDef; };
63 this.getTechniqueName = function() { return 'twistMe' }; 63 this.getTechniqueName = function() { return 'twistMe' };
64 64
65 this.hasVertexDeformation = function () { return this._hasVertexDeformation; }; 65 this.hasVertexDeformation = function () { return this._hasVertexDeformation; };
66 this._hasVertexDeformation = true; 66 this._hasVertexDeformation = true;
67 this._vertexDeformationTolerance = 0.02; // should be a property 67 this._vertexDeformationTolerance = 0.02; // should be a property
@@ -110,7 +110,7 @@ var TwistVertMaterial = function TwistVertMaterial()
110 if (this._shader && this._shader.twistMe) 110 if (this._shader && this._shader.twistMe)
111 { 111 {
112 var technique = this._shader.twistMe; 112 var technique = this._shader.twistMe;
113 113
114 var angle = this._angle; 114 var angle = this._angle;
115 angle += this._deltaTime * this._propValues["speed"]; 115 angle += this._deltaTime * this._propValues["speed"];
116 if (angle > this._propValues["u_twistAmount"]) 116 if (angle > this._propValues["u_twistAmount"])