diff options
author | Valerio Virgillito | 2012-07-09 14:16:17 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-09 14:18:36 -0700 |
commit | 1bbba17e8605434356de0a477710d6a0136986fc (patch) | |
tree | 7cdc80226b776c6fb2250e250acdbcd53fdb1ddd /js/lib/rdge/materials/relief-tunnel-material.js | |
parent | dc5b7a479a185dda8e9a09f4bbe26bd290641624 (diff) | |
parent | ab80aa9c7da912db384ec48c656f84fd673b5253 (diff) | |
download | ninja-1bbba17e8605434356de0a477710d6a0136986fc.tar.gz |
Merge branch 'Taper' of https://github.com/ericmueller/ninja-internal
Conflicts:
js/lib/geom/circle.js
js/lib/rdge/materials/linear-gradient-material.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/lib/rdge/materials/relief-tunnel-material.js')
-rw-r--r-- | js/lib/rdge/materials/relief-tunnel-material.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/relief-tunnel-material.js b/js/lib/rdge/materials/relief-tunnel-material.js index 202d7693..5776e6e2 100644 --- a/js/lib/rdge/materials/relief-tunnel-material.js +++ b/js/lib/rdge/materials/relief-tunnel-material.js | |||
@@ -91,6 +91,16 @@ var ReliefTunnelMaterial = function ReliefTunnelMaterial() | |||
91 | this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); | 91 | this.setResolution([world.getViewportWidth(), world.getViewportHeight()]); |
92 | this.update(0); | 92 | this.update(0); |
93 | }; | 93 | }; |
94 | |||
95 | this.resetToDefault = function() | ||
96 | { | ||
97 | this._propValues[this._propNames[u_tex0_index]] = this._defaultTexMap.slice(0); | ||
98 | this._propValues[this._propNames[u_speed_index]] = 1.0; | ||
99 | |||
100 | var nProps = this._propNames.length; | ||
101 | for (var i=0; i<nProps; i++) | ||
102 | this.setProperty( this._propNames[i], this._propValues[this._propNames[i]] ); | ||
103 | }; | ||
94 | }; | 104 | }; |
95 | 105 | ||
96 | /////////////////////////////////////////////////////////////////////////////////////// | 106 | /////////////////////////////////////////////////////////////////////////////////////// |