aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/cloud-material.js
diff options
context:
space:
mode:
authorhwc4872012-06-06 16:34:41 -0700
committerhwc4872012-06-06 16:34:41 -0700
commit6c994c4b90023cecf4fd0caafb404b859fe28f54 (patch)
tree75a4d813441ca6a3eb529dc88a749776459bb76e /js/lib/rdge/materials/cloud-material.js
parent920436977433ea55c01ce1e73895d1db0a6abac1 (diff)
downloadninja-6c994c4b90023cecf4fd0caafb404b859fe28f54.tar.gz
material cleanup and rearchitecture
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,