diff options
Diffstat (limited to 'js/models')
-rwxr-xr-x | js/models/materials-model.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/js/models/materials-model.js b/js/models/materials-model.js index 44364aa2..a083dc54 100755 --- a/js/models/materials-model.js +++ b/js/models/materials-model.js | |||
@@ -16,12 +16,14 @@ var LinearGradientMaterial = require("js/lib/rdge/materials/linear-gradient-mate | |||
16 | var RadialGradientMaterial = require("js/lib/rdge/materials/radial-gradient-material").RadialGradientMaterial; | 16 | var RadialGradientMaterial = require("js/lib/rdge/materials/radial-gradient-material").RadialGradientMaterial; |
17 | var BumpMetalMaterial = require("js/lib/rdge/materials/bump-metal-material").BumpMetalMaterial; | 17 | var BumpMetalMaterial = require("js/lib/rdge/materials/bump-metal-material").BumpMetalMaterial; |
18 | var UberMaterial = require("js/lib/rdge/materials/uber-material").UberMaterial; | 18 | var UberMaterial = require("js/lib/rdge/materials/uber-material").UberMaterial; |
19 | var CloudMaterial = require("js/lib/rdge/materials/cloud-material").CloudMaterial; | ||
19 | var RadialBlurMaterial = require("js/lib/rdge/materials/radial-blur-material").RadialBlurMaterial; | 20 | var RadialBlurMaterial = require("js/lib/rdge/materials/radial-blur-material").RadialBlurMaterial; |
20 | var RaidersMaterial = require("js/lib/rdge/materials/radial-blur-material").RaidersMaterial; | 21 | var RaidersMaterial = require("js/lib/rdge/materials/radial-blur-material").RaidersMaterial; |
21 | var PlasmaMaterial = require("js/lib/rdge/materials/plasma-material").PlasmaMaterial; | 22 | var PlasmaMaterial = require("js/lib/rdge/materials/plasma-material").PlasmaMaterial; |
22 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | 23 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; |
23 | var TunnelMaterial = require("js/lib/rdge/materials/tunnel-material").TunnelMaterial; | 24 | var TunnelMaterial = require("js/lib/rdge/materials/tunnel-material").TunnelMaterial; |
24 | var ReliefTunnelMaterial = require("js/lib/rdge/materials/relief-tunnel-material").ReliefTunnelMaterial; | 25 | var ReliefTunnelMaterial = require("js/lib/rdge/materials/relief-tunnel-material").ReliefTunnelMaterial; |
26 | var FlagMaterial = require("js/lib/rdge/materials/flag-material").FlagMaterial; | ||
25 | var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; | 27 | var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; |
26 | var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; | 28 | var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; |
27 | var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; | 29 | var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; |
@@ -30,6 +32,8 @@ var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvert | |||
30 | var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; | 32 | var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; |
31 | var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; | 33 | var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; |
32 | var TwistMaterial = require("js/lib/rdge/materials/twist-material").TwistMaterial; | 34 | var TwistMaterial = require("js/lib/rdge/materials/twist-material").TwistMaterial; |
35 | var TwistVertMaterial = require("js/lib/rdge/materials/twist-vert-material").TwistVertMaterial; | ||
36 | var TaperMaterial = require("js/lib/rdge/materials/taper-material").TaperMaterial; | ||
33 | var JuliaMaterial = require("js/lib/rdge/materials/julia-material").JuliaMaterial; | 37 | var JuliaMaterial = require("js/lib/rdge/materials/julia-material").JuliaMaterial; |
34 | var KeleidoscopeMaterial = require("js/lib/rdge/materials/keleidoscope-material").KeleidoscopeMaterial; | 38 | var KeleidoscopeMaterial = require("js/lib/rdge/materials/keleidoscope-material").KeleidoscopeMaterial; |
35 | var MandelMaterial = require("js/lib/rdge/materials/mandel-material").MandelMaterial; | 39 | var MandelMaterial = require("js/lib/rdge/materials/mandel-material").MandelMaterial; |
@@ -49,12 +53,14 @@ exports.MaterialsModel = Montage.create(Component, { | |||
49 | this.addMaterial(new RadialGradientMaterial()); | 53 | this.addMaterial(new RadialGradientMaterial()); |
50 | this.addMaterial(new BumpMetalMaterial()); | 54 | this.addMaterial(new BumpMetalMaterial()); |
51 | this.addMaterial(new UberMaterial()); | 55 | this.addMaterial(new UberMaterial()); |
56 | this.addMaterial(new CloudMaterial()); | ||
52 | this.addMaterial(new RadialBlurMaterial()); | 57 | this.addMaterial(new RadialBlurMaterial()); |
53 | this.addMaterial(new RaidersMaterial()); | 58 | this.addMaterial(new RaidersMaterial()); |
54 | this.addMaterial(new PlasmaMaterial()); | 59 | this.addMaterial(new PlasmaMaterial()); |
55 | this.addMaterial(new PulseMaterial()); | 60 | this.addMaterial(new PulseMaterial()); |
56 | this.addMaterial(new TunnelMaterial()); | 61 | this.addMaterial(new TunnelMaterial()); |
57 | this.addMaterial(new ReliefTunnelMaterial()); | 62 | this.addMaterial(new ReliefTunnelMaterial()); |
63 | this.addMaterial(new FlagMaterial()); | ||
58 | this.addMaterial(new SquareTunnelMaterial()); | 64 | this.addMaterial(new SquareTunnelMaterial()); |
59 | this.addMaterial(new FlyMaterial()); | 65 | this.addMaterial(new FlyMaterial()); |
60 | this.addMaterial(new WaterMaterial()); | 66 | this.addMaterial(new WaterMaterial()); |
@@ -63,6 +69,8 @@ exports.MaterialsModel = Montage.create(Component, { | |||
63 | this.addMaterial(new DeformMaterial()); | 69 | this.addMaterial(new DeformMaterial()); |
64 | this.addMaterial(new StarMaterial()); | 70 | this.addMaterial(new StarMaterial()); |
65 | this.addMaterial(new TwistMaterial()); | 71 | this.addMaterial(new TwistMaterial()); |
72 | this.addMaterial(new TwistVertMaterial()); | ||
73 | this.addMaterial(new TaperMaterial()); | ||
66 | this.addMaterial(new JuliaMaterial()); | 74 | this.addMaterial(new JuliaMaterial()); |
67 | this.addMaterial(new KeleidoscopeMaterial()); | 75 | this.addMaterial(new KeleidoscopeMaterial()); |
68 | this.addMaterial(new MandelMaterial()); | 76 | this.addMaterial(new MandelMaterial()); |
@@ -116,7 +124,7 @@ exports.MaterialsModel = Montage.create(Component, { | |||
116 | value: function (materialName) { | 124 | value: function (materialName) { |
117 | var index = this.getIndexOfMaterial(materialName); | 125 | var index = this.getIndexOfMaterial(materialName); |
118 | if(index !== -1) { | 126 | if(index !== -1) { |
119 | return this._materials[index].dup(); | 127 | return this._materials[index]; |
120 | } | 128 | } |
121 | } | 129 | } |
122 | }, | 130 | }, |
@@ -127,7 +135,7 @@ exports.MaterialsModel = Montage.create(Component, { | |||
127 | { | 135 | { |
128 | var index = this.getIndexOfMaterialByShader( shaderName ); | 136 | var index = this.getIndexOfMaterialByShader( shaderName ); |
129 | if (index >= 0) | 137 | if (index >= 0) |
130 | return this._materials[index].dup(); | 138 | return this._materials[index]; |
131 | } | 139 | } |
132 | }, | 140 | }, |
133 | 141 | ||
@@ -226,6 +234,7 @@ exports.MaterialsModel = Montage.create(Component, { | |||
226 | case "radialGradient": mat = new RadialGradientMaterial(); break; | 234 | case "radialGradient": mat = new RadialGradientMaterial(); break; |
227 | case "bumpMetal": mat = new BumpMetalMaterial(); break; | 235 | case "bumpMetal": mat = new BumpMetalMaterial(); break; |
228 | case "uber": mat = new UberMaterial(); break; | 236 | case "uber": mat = new UberMaterial(); break; |
237 | case "cloud": mat = new CloudMaterial(); break; | ||
229 | 238 | ||
230 | case "taper": mat = new TaperMaterial(); break; | 239 | case "taper": mat = new TaperMaterial(); break; |
231 | case "twistVert": mat = new TwistVertMaterial(); break; | 240 | case "twistVert": mat = new TwistVertMaterial(); break; |
@@ -235,6 +244,7 @@ exports.MaterialsModel = Montage.create(Component, { | |||
235 | case "tunnel": mat = new TunnelMaterial(); break; | 244 | case "tunnel": mat = new TunnelMaterial(); break; |
236 | case "reliefTunnel": mat = new ReliefTunnelMaterial(); break; | 245 | case "reliefTunnel": mat = new ReliefTunnelMaterial(); break; |
237 | case "squareTunnel": mat = new SquareTunnelMaterial(); break; | 246 | case "squareTunnel": mat = new SquareTunnelMaterial(); break; |
247 | case "flag": mat = new FlagMaterial(); break; | ||
238 | case "fly": mat = new FlyMaterial(); break; | 248 | case "fly": mat = new FlyMaterial(); break; |
239 | case "water": mat = new WaterMaterial(); break; | 249 | case "water": mat = new WaterMaterial(); break; |
240 | case "paris": mat = new ParisMaterial(); break; | 250 | case "paris": mat = new ParisMaterial(); break; |