aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/water-material.js
diff options
context:
space:
mode:
authorEric Guzman2012-07-20 11:24:19 -0700
committerEric Guzman2012-07-20 11:24:19 -0700
commit3cc29231852440508bdeec1964e40ce59f979f99 (patch)
tree2faaf3d49337437e4a84818fe24dc64a60f8c611 /js/lib/rdge/materials/water-material.js
parent8fdf2fc8aefee68aec4c7b5891e0375f704cbf26 (diff)
parent9053e2037821a5c8405fabb74db9635deacfe8d5 (diff)
downloadninja-3cc29231852440508bdeec1964e40ce59f979f99.tar.gz
Merge branch 'refs/heads/master' into fixes_7.1
Diffstat (limited to 'js/lib/rdge/materials/water-material.js')
-rw-r--r--js/lib/rdge/materials/water-material.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/lib/rdge/materials/water-material.js b/js/lib/rdge/materials/water-material.js
index c7e7313c..9997244c 100644
--- a/js/lib/rdge/materials/water-material.js
+++ b/js/lib/rdge/materials/water-material.js
@@ -165,16 +165,16 @@ var waterMaterialDef =
165 } 165 }
166}; 166};
167 167
168var ParisMaterial = function ParisMaterial() 168var BlueSkyMaterial = function BlueSkyMaterial()
169{ 169{
170 // initialize the inherited members 170 // initialize the inherited members
171 this.inheritedFrom = WaterMaterial; 171 this.inheritedFrom = WaterMaterial;
172 this.inheritedFrom(); 172 this.inheritedFrom();
173 173
174 this._name = "Paris"; 174 this._name = "Blue Sky";
175 this._shaderName = "paris"; 175 this._shaderName = "blueSky";
176 176
177 this._defaultTexMap = 'assets/images/paris.png'; 177 this._defaultTexMap = 'assets/images/bluesky.png';
178 this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0); 178 this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0);
179 179
180 //this._diffuseColor = [0.5, 0.5, 0.5, 0.5]; 180 //this._diffuseColor = [0.5, 0.5, 0.5, 0.5];
@@ -191,7 +191,7 @@ var ParisMaterial = function ParisMaterial()
191 this._shader.init(); 191 this._shader.init();
192 192
193 // set up the material node 193 // set up the material node
194 this._materialNode = RDGE.createMaterialNode("parisMaterial" + "_" + world.generateUniqueNodeID()); 194 this._materialNode = RDGE.createMaterialNode("blueSkyMaterial" + "_" + world.generateUniqueNodeID());
195 this._materialNode.setShader(this._shader); 195 this._materialNode.setShader(this._shader);
196 196
197 this._time = 0; 197 this._time = 0;
@@ -206,9 +206,9 @@ var ParisMaterial = function ParisMaterial()
206} 206}
207 207
208 208
209ParisMaterial.prototype = new PulseMaterial(); 209BlueSkyMaterial.prototype = new PulseMaterial();
210if (typeof exports === "object") { 210if (typeof exports === "object") {
211 exports.ParisMaterial = ParisMaterial; 211 exports.BlueSkyMaterial = BlueSkyMaterial;
212} 212}
213 213
214 214