aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/cloud-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/cloud-material.js')
-rw-r--r--js/lib/rdge/materials/cloud-material.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/js/lib/rdge/materials/cloud-material.js b/js/lib/rdge/materials/cloud-material.js
index 2c7fced2..2153b857 100644
--- a/js/lib/rdge/materials/cloud-material.js
+++ b/js/lib/rdge/materials/cloud-material.js
@@ -106,23 +106,6 @@ var CloudMaterial = function CloudMaterial()
106 /////////////////////////////////////////////////////////////////////// 106 ///////////////////////////////////////////////////////////////////////
107 // duplicate method required 107 // duplicate method required
108 /**************************************************************/ 108 /**************************************************************/
109 this.dup = function (world) {
110 // save the world
111 if (world) this.setWorld(world);
112
113 // allocate a new uber material
114 var newMat = new CloudMaterial();
115
116 // copy over the current values;
117 var propNames = [], propValues = [], propTypes = [], propLabels = [];
118 this.getAllProperties(propNames, propValues, propTypes, propLabels);
119 var n = propNames.length;
120 for (var i = 0; i < n; i++) {
121 newMat.setProperty(propNames[i], propValues[i]);
122 }
123
124 return newMat;
125 };
126 109
127 this.init = function (world) { 110 this.init = function (world) {
128 var GLWorld = require("js/lib/drawing/world").World, 111 var GLWorld = require("js/lib/drawing/world").World,