diff options
author | Jose Antonio Marquez | 2012-03-11 11:29:56 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-03-11 11:29:56 -0700 |
commit | 49e4c8695941f6bdd15893534ffb3ccce92c5396 (patch) | |
tree | 9e8327be823441717ad44684d0e3714c56116f39 /js/lib/geom/geom-obj.js | |
parent | 9ab4b4306343ec2a20094c7626abb524b7720ce8 (diff) | |
parent | 242bddd5b64c4a5226daa2f4caa10bf63c56403a (diff) | |
download | ninja-49e4c8695941f6bdd15893534ffb3ccce92c5396.tar.gz |
Merge branch 'refs/heads/FileIO-Integration' into FileIO
Diffstat (limited to 'js/lib/geom/geom-obj.js')
-rwxr-xr-x | js/lib/geom/geom-obj.js | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/js/lib/geom/geom-obj.js b/js/lib/geom/geom-obj.js index 852aab89..1a197832 100755 --- a/js/lib/geom/geom-obj.js +++ b/js/lib/geom/geom-obj.js | |||
@@ -5,6 +5,27 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | var MaterialsModel = require("js/models/materials-model").MaterialsModel; | 7 | var MaterialsModel = require("js/models/materials-model").MaterialsModel; |
8 | var FlatMaterial = require("js/lib/rdge/materials/flat-material").FlatMaterial; | ||
9 | var LinearGradientMaterial = require("js/lib/rdge/materials/linear-gradient-material").LinearGradientMaterial; | ||
10 | var RadialGradientMaterial = require("js/lib/rdge/materials/radial-gradient-material").RadialGradientMaterial; | ||
11 | var BumpMetalMaterial = require("js/lib/rdge/materials/bump-metal-material").BumpMetalMaterial; | ||
12 | var UberMaterial = require("js/lib/rdge/materials/uber-material").UberMaterial; | ||
13 | var RadialBlurMaterial = require("js/lib/rdge/materials/radial-blur-material").RadialBlurMaterial; | ||
14 | var PlasmaMaterial = require("js/lib/rdge/materials/plasma-material").PlasmaMaterial; | ||
15 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | ||
16 | var TunnelMaterial = require("js/lib/rdge/materials/tunnel-material").TunnelMaterial; | ||
17 | var ReliefTunnelMaterial = require("js/lib/rdge/materials/relief-tunnel-material").ReliefTunnelMaterial; | ||
18 | var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; | ||
19 | var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; | ||
20 | var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; | ||
21 | var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvertMaterial; | ||
22 | var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; | ||
23 | var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; | ||
24 | var TwistMaterial = require("js/lib/rdge/materials/twist-material").TwistMaterial; | ||
25 | var JuliaMaterial = require("js/lib/rdge/materials/julia-material").JuliaMaterial; | ||
26 | var KeleidoscopeMaterial = require("js/lib/rdge/materials/keleidoscope-material").KeleidoscopeMaterial; | ||
27 | var MandelMaterial = require("js/lib/rdge/materials/mandel-material").MandelMaterial; | ||
28 | |||
8 | /////////////////////////////////////////////////////////////////////// | 29 | /////////////////////////////////////////////////////////////////////// |
9 | // Class GLGeomObj | 30 | // Class GLGeomObj |
10 | // Super class for all geometry classes | 31 | // Super class for all geometry classes |
@@ -235,7 +256,26 @@ var GeomObj = function GLGeomObj() { | |||
235 | var materialType = this.getPropertyFromString( "material: ", importStr ); | 256 | var materialType = this.getPropertyFromString( "material: ", importStr ); |
236 | switch (materialType) | 257 | switch (materialType) |
237 | { | 258 | { |
238 | case "flat": mat = new FlatMaterial(); break; | 259 | case "flat": mat = new FlatMaterial(); break; |
260 | case "radialGradient": mat = new RadialGradientMaterial(); break; | ||
261 | case "linearGradient": mat = new LinearGradientMaterial(); break; | ||
262 | case "bumpMetal": mat = new BumpMetalMaterial(); break; | ||
263 | case "uber": mat = new UberMaterial(); break; | ||
264 | case "plasma": mat = new PlasmaMaterial(); break; | ||
265 | case "deform": mat = new DeformMaterial(); break; | ||
266 | case "water": mat = new WaterMaterial(); break; | ||
267 | case "tunnel": mat = new TunnelMaterial(); break; | ||
268 | case "reliefTunnel": mat = new ReliefTunnelMaterial(); break; | ||
269 | case "squareTunnel": mat = new SquareTunnelMaterial(); break; | ||
270 | case "twist": mat = new TwiseMaterial(); break; | ||
271 | case "fly": mat = new FlyMaterial(); break; | ||
272 | case "julia": mat = new JuliaMaterial(); break; | ||
273 | case "mandel": mat = new MandelMaterial(); break; | ||
274 | case "star": mat = new StarMaterial(); break; | ||
275 | case "zinvert": mat = new ZInvertMaterial(); break; | ||
276 | case "keleidoscope": mat = new KeleidoscopeMaterial(); break; | ||
277 | case "radialBlur": mat = new RadialBlurMaterial(); break; | ||
278 | case "pulse": mat = new PulseMaterial(); break; | ||
239 | 279 | ||
240 | default: | 280 | default: |
241 | console.log( "material type: " + materialType + " is not supported" ); | 281 | console.log( "material type: " + materialType + " is not supported" ); |