aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/plasma-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/plasma-material.js')
-rw-r--r--js/lib/rdge/materials/plasma-material.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/plasma-material.js b/js/lib/rdge/materials/plasma-material.js
index 86b1a93c..316a5989 100644
--- a/js/lib/rdge/materials/plasma-material.js
+++ b/js/lib/rdge/materials/plasma-material.js
@@ -67,6 +67,25 @@ var PlasmaMaterial = function PlasmaMaterial() {
67 this._time += this._dTime; 67 this._time += this._dTime;
68 } 68 }
69 69
70 this.exportJSON = function()
71 {
72
73 var jObj =
74 {
75 'material' : this.getShaderName(),
76 'name' : this.getName(),
77 'speed' : this._speed,
78 'dTime' : this._dTime
79 }
80
81 return jObj;
82 }
83
84 this.importJSON = function( jObj )
85 {
86 this._speed = jObj.speed;
87 this._dTime = jObj.dTime;
88 }
70}; 89};
71 90
72/////////////////////////////////////////////////////////////////////////////////////// 91///////////////////////////////////////////////////////////////////////////////////////