diff options
author | Valerio Virgillito | 2012-07-10 10:45:22 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-10 10:45:22 -0700 |
commit | cfb2f95cffd22d5da2694639a8f2f67baf417adc (patch) | |
tree | 9250e86f03cf432fd58486accc8e05497e9a40de /js/models | |
parent | b2b1d24d6c5741f7cd6e920edfe8781aa9efce1b (diff) | |
download | ninja-cfb2f95cffd22d5da2694639a8f2f67baf417adc.tar.gz |
Removed the shaders that we do not have rights to.
Conflicts:
js/io/system/ninjalibrary.json
js/models/materials-model.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/models')
-rwxr-xr-x | js/models/materials-model.js | 274 |
1 files changed, 137 insertions, 137 deletions
diff --git a/js/models/materials-model.js b/js/models/materials-model.js index fbc85cec..cc3c3fa1 100755 --- a/js/models/materials-model.js +++ b/js/models/materials-model.js | |||
@@ -42,26 +42,26 @@ var RadialGradientMaterial = require("js/lib/rdge/materials/radial-gradient-mate | |||
42 | var BumpMetalMaterial = require("js/lib/rdge/materials/bump-metal-material").BumpMetalMaterial; | 42 | var BumpMetalMaterial = require("js/lib/rdge/materials/bump-metal-material").BumpMetalMaterial; |
43 | var UberMaterial = require("js/lib/rdge/materials/uber-material").UberMaterial; | 43 | var UberMaterial = require("js/lib/rdge/materials/uber-material").UberMaterial; |
44 | //var CloudMaterial = require("js/lib/rdge/materials/cloud-material").CloudMaterial; | 44 | //var CloudMaterial = require("js/lib/rdge/materials/cloud-material").CloudMaterial; |
45 | var RadialBlurMaterial = require("js/lib/rdge/materials/radial-blur-material").RadialBlurMaterial; | 45 | //var RadialBlurMaterial = require("js/lib/rdge/materials/radial-blur-material").RadialBlurMaterial; |
46 | var RaidersMaterial = require("js/lib/rdge/materials/radial-blur-material").RaidersMaterial; | 46 | //var RaidersMaterial = require("js/lib/rdge/materials/radial-blur-material").RaidersMaterial; |
47 | var PlasmaMaterial = require("js/lib/rdge/materials/plasma-material").PlasmaMaterial; | 47 | var PlasmaMaterial = require("js/lib/rdge/materials/plasma-material").PlasmaMaterial; |
48 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | 48 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; |
49 | var TunnelMaterial = require("js/lib/rdge/materials/tunnel-material").TunnelMaterial; | 49 | //var TunnelMaterial = require("js/lib/rdge/materials/tunnel-material").TunnelMaterial; |
50 | var ReliefTunnelMaterial = require("js/lib/rdge/materials/relief-tunnel-material").ReliefTunnelMaterial; | 50 | //var ReliefTunnelMaterial = require("js/lib/rdge/materials/relief-tunnel-material").ReliefTunnelMaterial; |
51 | var FlagMaterial = require("js/lib/rdge/materials/flag-material").FlagMaterial; | 51 | var FlagMaterial = require("js/lib/rdge/materials/flag-material").FlagMaterial; |
52 | var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; | 52 | //var SquareTunnelMaterial = require("js/lib/rdge/materials/square-tunnel-material").SquareTunnelMaterial; |
53 | var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; | 53 | //var FlyMaterial = require("js/lib/rdge/materials/fly-material").FlyMaterial; |
54 | var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; | 54 | var WaterMaterial = require("js/lib/rdge/materials/water-material").WaterMaterial; |
55 | var ParisMaterial = require("js/lib/rdge/materials/water-material").ParisMaterial; | 55 | var ParisMaterial = require("js/lib/rdge/materials/water-material").ParisMaterial; |
56 | var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvertMaterial; | 56 | //var ZInvertMaterial = require("js/lib/rdge/materials/z-invert-material").ZInvertMaterial; |
57 | var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; | 57 | //var DeformMaterial = require("js/lib/rdge/materials/deform-material").DeformMaterial; |
58 | var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; | 58 | //var StarMaterial = require("js/lib/rdge/materials/star-material").StarMaterial; |
59 | var TwistMaterial = require("js/lib/rdge/materials/twist-material").TwistMaterial; | 59 | //var TwistMaterial = require("js/lib/rdge/materials/twist-material").TwistMaterial; |
60 | var TwistVertMaterial = require("js/lib/rdge/materials/twist-vert-material").TwistVertMaterial; | 60 | var TwistVertMaterial = require("js/lib/rdge/materials/twist-vert-material").TwistVertMaterial; |
61 | var TaperMaterial = require("js/lib/rdge/materials/taper-material").TaperMaterial; | 61 | var TaperMaterial = require("js/lib/rdge/materials/taper-material").TaperMaterial; |
62 | var JuliaMaterial = require("js/lib/rdge/materials/julia-material").JuliaMaterial; | 62 | //var JuliaMaterial = require("js/lib/rdge/materials/julia-material").JuliaMaterial; |
63 | var KeleidoscopeMaterial = require("js/lib/rdge/materials/keleidoscope-material").KeleidoscopeMaterial; | 63 | //var KeleidoscopeMaterial = require("js/lib/rdge/materials/keleidoscope-material").KeleidoscopeMaterial; |
64 | var MandelMaterial = require("js/lib/rdge/materials/mandel-material").MandelMaterial; | 64 | //var MandelMaterial = require("js/lib/rdge/materials/mandel-material").MandelMaterial; |
65 | 65 | ||
66 | 66 | ||
67 | exports.MaterialsModel = Montage.create(Component, { | 67 | exports.MaterialsModel = Montage.create(Component, { |
@@ -70,37 +70,37 @@ exports.MaterialsModel = Montage.create(Component, { | |||
70 | value: false | 70 | value: false |
71 | }, | 71 | }, |
72 | 72 | ||
73 | deserializedFromTemplate: { | 73 | deserializedFromTemplate: { |
74 | value: function() { | 74 | value: function() { |
75 | // Load all the materials | 75 | // Load all the materials |
76 | this.addMaterial(new FlatMaterial()); | 76 | this.addMaterial(new FlatMaterial()); |
77 | this.addMaterial(new BumpMetalMaterial()); | 77 | this.addMaterial(new BumpMetalMaterial()); |
78 | //this.addMaterial(new CloudMaterial()); | 78 | //this.addMaterial(new CloudMaterial()); |
79 | this.addMaterial(new DeformMaterial()); | 79 | //this.addMaterial(new DeformMaterial()); |
80 | this.addMaterial(new FlagMaterial()); | 80 | this.addMaterial(new FlagMaterial()); |
81 | this.addMaterial(new FlyMaterial()); | 81 | //this.addMaterial(new FlyMaterial()); |
82 | this.addMaterial(new JuliaMaterial()); | 82 | //this.addMaterial(new JuliaMaterial()); |
83 | this.addMaterial(new KeleidoscopeMaterial()); | 83 | //this.addMaterial(new KeleidoscopeMaterial()); |
84 | this.addMaterial(new LinearGradientMaterial()); | 84 | this.addMaterial(new LinearGradientMaterial()); |
85 | this.addMaterial(new MandelMaterial()); | 85 | //this.addMaterial(new MandelMaterial()); |
86 | this.addMaterial(new ParisMaterial()); | 86 | this.addMaterial(new ParisMaterial()); |
87 | this.addMaterial(new PlasmaMaterial()); | 87 | this.addMaterial(new PlasmaMaterial()); |
88 | this.addMaterial(new PulseMaterial()); | 88 | this.addMaterial(new PulseMaterial()); |
89 | this.addMaterial(new RadialBlurMaterial()); | 89 | //this.addMaterial(new RadialBlurMaterial()); |
90 | this.addMaterial(new RadialGradientMaterial()); | 90 | this.addMaterial(new RadialGradientMaterial()); |
91 | this.addMaterial(new RaidersMaterial()); | 91 | //this.addMaterial(new RaidersMaterial()); |
92 | this.addMaterial(new ReliefTunnelMaterial()); | 92 | //this.addMaterial(new ReliefTunnelMaterial()); |
93 | this.addMaterial(new SquareTunnelMaterial()); | 93 | //this.addMaterial(new SquareTunnelMaterial()); |
94 | this.addMaterial(new StarMaterial()); | 94 | //this.addMaterial(new StarMaterial()); |
95 | this.addMaterial(new TaperMaterial()); | 95 | this.addMaterial(new TaperMaterial()); |
96 | this.addMaterial(new TunnelMaterial()); | 96 | //this.addMaterial(new TunnelMaterial()); |
97 | this.addMaterial(new TwistMaterial()); | 97 | //this.addMaterial(new TwistMaterial()); |
98 | this.addMaterial(new TwistVertMaterial()); | 98 | this.addMaterial(new TwistVertMaterial()); |
99 | this.addMaterial(new UberMaterial()); | 99 | this.addMaterial(new UberMaterial()); |
100 | this.addMaterial(new WaterMaterial()); | 100 | this.addMaterial(new WaterMaterial()); |
101 | this.addMaterial(new ZInvertMaterial()); | 101 | //this.addMaterial(new ZInvertMaterial()); |
102 | } | 102 | } |
103 | }, | 103 | }, |
104 | 104 | ||
105 | _materials : { | 105 | _materials : { |
106 | value: AppModel.materials | 106 | value: AppModel.materials |
@@ -154,15 +154,15 @@ exports.MaterialsModel = Montage.create(Component, { | |||
154 | } | 154 | } |
155 | }, | 155 | }, |
156 | 156 | ||
157 | getMaterialByShader: | 157 | getMaterialByShader: |
158 | { | 158 | { |
159 | value: function( shaderName ) | 159 | value: function( shaderName ) |
160 | { | 160 | { |
161 | var index = this.getIndexOfMaterialByShader( shaderName ); | 161 | var index = this.getIndexOfMaterialByShader( shaderName ); |
162 | if (index >= 0) | 162 | if (index >= 0) |
163 | return this._materials[index]; | 163 | return this._materials[index]; |
164 | } | 164 | } |
165 | }, | 165 | }, |
166 | 166 | ||
167 | getIndexOfMaterialByShader: { | 167 | getIndexOfMaterialByShader: { |
168 | value: function (shaderName) { | 168 | value: function (shaderName) { |
@@ -192,11 +192,11 @@ exports.MaterialsModel = Montage.create(Component, { | |||
192 | } | 192 | } |
193 | }, | 193 | }, |
194 | 194 | ||
195 | clearAllMaterials: { | 195 | clearAllMaterials: { |
196 | value: function() { | 196 | value: function() { |
197 | this._materials = []; | 197 | this._materials = []; |
198 | } | 198 | } |
199 | }, | 199 | }, |
200 | 200 | ||
201 | exportFlatMaterial: { | 201 | exportFlatMaterial: { |
202 | value: function() { | 202 | value: function() { |
@@ -204,25 +204,25 @@ exports.MaterialsModel = Montage.create(Component, { | |||
204 | } | 204 | } |
205 | }, | 205 | }, |
206 | 206 | ||
207 | getDefaultMaterialName: { | 207 | getDefaultMaterialName: { |
208 | value: function() { | 208 | value: function() { |
209 | return "Flat"; | 209 | return "Flat"; |
210 | } | 210 | } |
211 | }, | 211 | }, |
212 | 212 | ||
213 | exportMaterials: { | 213 | exportMaterials: { |
214 | value: function() | 214 | value: function() |
215 | { | 215 | { |
216 | var matArray = []; | 216 | var matArray = []; |
217 | var nMats = this._materials.length; | 217 | var nMats = this._materials.length; |
218 | for (var i=0; i<nMats; i++) { | 218 | for (var i=0; i<nMats; i++) { |
219 | var material = this._materials[i]; | 219 | var material = this._materials[i]; |
220 | var matObj = material.exportJSON(); | 220 | var matObj = material.exportJSON(); |
221 | matArray.push( matObj ); | 221 | matArray.push( matObj ); |
222 | } | 222 | } |
223 | 223 | ||
224 | var jObj = | 224 | var jObj = |
225 | { | 225 | { |
226 | 'materialLibrary': 1.0, | 226 | 'materialLibrary': 1.0, |
227 | 'materials': matArray | 227 | 'materials': matArray |
228 | }; | 228 | }; |
@@ -231,81 +231,81 @@ exports.MaterialsModel = Montage.create(Component, { | |||
231 | // material model is loaded. | 231 | // material model is loaded. |
232 | var jStr = "materialLibrary;" + JSON.stringify( jObj ); | 232 | var jStr = "materialLibrary;" + JSON.stringify( jObj ); |
233 | 233 | ||
234 | return jStr; | 234 | return jStr; |
235 | } | 235 | } |
236 | }, | 236 | }, |
237 | 237 | ||
238 | createMaterialByShaderName: | 238 | createMaterialByShaderName: |
239 | { | 239 | { |
240 | value: function(shaderName) | 240 | value: function(shaderName) |
241 | { | 241 | { |
242 | var mat; | 242 | var mat; |
243 | switch (shaderName) | 243 | switch (shaderName) |
244 | { | 244 | { |
245 | case "flat": mat = new FlatMaterial(); break; | 245 | case "flat": mat = new FlatMaterial(); break; |
246 | case "linearGradient": mat = new LinearGradientMaterial(); break; | 246 | case "linearGradient": mat = new LinearGradientMaterial(); break; |
247 | case "radialGradient": mat = new RadialGradientMaterial(); break; | 247 | case "radialGradient": mat = new RadialGradientMaterial(); break; |
248 | case "bumpMetal": mat = new BumpMetalMaterial(); break; | 248 | case "bumpMetal": mat = new BumpMetalMaterial(); break; |
249 | case "uber": mat = new UberMaterial(); break; | 249 | case "uber": mat = new UberMaterial(); break; |
250 | //case "cloud": mat = new CloudMaterial(); break; | 250 | //case "cloud": mat = new CloudMaterial(); break; |
251 | 251 | ||