aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/lib/rdge/materials/water-material.js4
-rwxr-xr-xjs/models/materials-model.js6
-rw-r--r--js/panels/Materials/materials-data.json4
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js1
4 files changed, 10 insertions, 5 deletions
diff --git a/js/lib/rdge/materials/water-material.js b/js/lib/rdge/materials/water-material.js
index f2ef0e49..982b581f 100644
--- a/js/lib/rdge/materials/water-material.js
+++ b/js/lib/rdge/materials/water-material.js
@@ -133,11 +133,11 @@ var ParisMaterial = function ParisMaterial()
133 this.inheritedFrom = WaterMaterial; 133 this.inheritedFrom = WaterMaterial;
134 this.inheritedFrom(); 134 this.inheritedFrom();
135 135
136 this._name = "ParisMaterial"; 136 this._name = "Paris";
137 this._shaderName = "paris"; 137 this._shaderName = "paris";
138 138
139 this._defaultTexMap = 'assets/images/paris.png'; 139 this._defaultTexMap = 'assets/images/paris.png';
140 this._propValues[this._propNames[u_tex_index]] = this._defaultTexMap.slice(0); 140 this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0);
141 141
142 //this._diffuseColor = [0.5, 0.5, 0.5, 0.5]; 142 //this._diffuseColor = [0.5, 0.5, 0.5, 0.5];
143 //this._propValues[this._propNames[1]] = this._diffuseColor.slice(); 143 //this._propValues[this._propNames[1]] = this._diffuseColor.slice();
diff --git a/js/models/materials-model.js b/js/models/materials-model.js
index d8f9a9e2..3cc80982 100755
--- a/js/models/materials-model.js
+++ b/js/models/materials-model.js
@@ -27,7 +27,7 @@ var FlagMaterial = require("js/lib/rdge/materials/flag-material").FlagMaterial;
27var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; 27var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial;
28var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; 28var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial;
29var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; 29var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial;
30//var ParisMaterial = require("js/lib/rdge/materials/water-material").ParisMaterial; 30var ParisMaterial = require("js/lib/rdge/materials/water-material").ParisMaterial;
31var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvertMaterial; 31var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvertMaterial;
32var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; 32var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial;
33var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; 33var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial;
@@ -58,9 +58,9 @@ exports.MaterialsModel = Montage.create(Component, {
58 this.addMaterial(new KeleidoscopeMaterial()); 58 this.addMaterial(new KeleidoscopeMaterial());
59 this.addMaterial(new LinearGradientMaterial()); 59 this.addMaterial(new LinearGradientMaterial());
60 this.addMaterial(new MandelMaterial()); 60 this.addMaterial(new MandelMaterial());
61 this.addMaterial(new ParisMaterial());
61 this.addMaterial(new PlasmaMaterial()); 62 this.addMaterial(new PlasmaMaterial());
62 this.addMaterial(new PulseMaterial()); 63 this.addMaterial(new PulseMaterial());
63 //this.addMaterial(new ParisMaterial());
64 this.addMaterial(new RadialBlurMaterial()); 64 this.addMaterial(new RadialBlurMaterial());
65 this.addMaterial(new RadialGradientMaterial()); 65 this.addMaterial(new RadialGradientMaterial());
66 this.addMaterial(new RaidersMaterial()); 66 this.addMaterial(new RaidersMaterial());
@@ -235,7 +235,7 @@ exports.MaterialsModel = Montage.create(Component, {
235 case "flag": mat = new FlagMaterial(); break; 235 case "flag": mat = new FlagMaterial(); break;
236 case "fly": mat = new FlyMaterial(); break; 236 case "fly": mat = new FlyMaterial(); break;
237 case "water": mat = new WaterMaterial(); break; 237 case "water": mat = new WaterMaterial(); break;
238 //case "paris": mat = new ParisMaterial(); break; 238 case "paris": mat = new ParisMaterial(); break;
239 case "raiders": mat = new RaidersMaterial(); break; 239 case "raiders": mat = new RaidersMaterial(); break;
240 case "zinvert": mat = new ZInvertMaterial(); break; 240 case "zinvert": mat = new ZInvertMaterial(); break;
241 case "deform": mat = new DeformMaterial(); break; 241 case "deform": mat = new DeformMaterial(); break;
diff --git a/js/panels/Materials/materials-data.json b/js/panels/Materials/materials-data.json
index ad0c1f56..221fdd2b 100644
--- a/js/panels/Materials/materials-data.json
+++ b/js/panels/Materials/materials-data.json
@@ -41,6 +41,10 @@
41 "id" : "Mandel" 41 "id" : "Mandel"
42 }, 42 },
43 { 43 {
44 "label": "Paris",
45 "id" : "Paris"
46 },
47 {
44 "label": "Plasma", 48 "label": "Plasma",
45 "id" : "Plasma" 49 "id" : "Plasma"
46 }, 50 },
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js
index e9535f94..8240c746 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.js
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.js
@@ -345,6 +345,7 @@ exports.MaterialsPopup = Montage.create(Component, {
345 (materialID === "Keleidoscope") || 345 (materialID === "Keleidoscope") ||
346 (materialID === "Linear Gradient") || 346 (materialID === "Linear Gradient") ||
347 (materialID === "Mandel") || 347 (materialID === "Mandel") ||
348 (materialID === "Paris") ||
348 (materialID === "Plasma") || 349 (materialID === "Plasma") ||
349 (materialID === "Pulse") || 350 (materialID === "Pulse") ||
350 (materialID === "Radial Blur") || 351 (materialID === "Radial Blur") ||