diff options
author | hwc487 | 2012-04-19 13:01:43 -0700 |
---|---|---|
committer | hwc487 | 2012-04-19 13:01:43 -0700 |
commit | e6a20fe64574763483dc602bd759278ccf5e5e68 (patch) | |
tree | 69defe7200206f0257fe90697136fadef59d521e /js/lib/rdge/materials/keleidoscope-material.js | |
parent | ae7eb87564632ce7c676bd728b8ff2710ff0bb83 (diff) | |
parent | 9284c19f076dec3b47ece7dc7bcd22d74e4246c3 (diff) | |
download | ninja-e6a20fe64574763483dc602bd759278ccf5e5e68.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts:
js/lib/drawing/world.js
js/lib/geom/geom-obj.js
js/lib/rdge/materials/cloud-material.js
js/lib/rdge/materials/deform-material.js
js/lib/rdge/materials/flat-material.js
js/lib/rdge/materials/material.js
js/lib/rdge/materials/pulse-material.js
js/lib/rdge/materials/relief-tunnel-material.js
js/lib/rdge/materials/square-tunnel-material.js
js/lib/rdge/materials/star-material.js
js/lib/rdge/materials/taper-material.js
js/lib/rdge/materials/tunnel-material.js
js/lib/rdge/materials/twist-material.js
js/lib/rdge/materials/twist-vert-material.js
js/lib/rdge/materials/uber-material.js
js/lib/rdge/materials/water-material.js
js/lib/rdge/materials/z-invert-material.js
Diffstat (limited to 'js/lib/rdge/materials/keleidoscope-material.js')
-rw-r--r-- | js/lib/rdge/materials/keleidoscope-material.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/rdge/materials/keleidoscope-material.js b/js/lib/rdge/materials/keleidoscope-material.js index a687bd59..db325eaa 100644 --- a/js/lib/rdge/materials/keleidoscope-material.js +++ b/js/lib/rdge/materials/keleidoscope-material.js | |||
@@ -56,12 +56,12 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
56 | if (world) this.setWorld( world ); | 56 | if (world) this.setWorld( world ); |
57 | 57 | ||
58 | // set up the shader | 58 | // set up the shader |
59 | this._shader = new jshader(); | 59 | this._shader = new RDGE.jshader(); |
60 | this._shader.def = keleidoscopeMaterialDef; | 60 | this._shader.def = keleidoscopeMaterialDef; |
61 | this._shader.init(); | 61 | this._shader.init(); |
62 | 62 | ||
63 | // set up the material node | 63 | // set up the material node |
64 | this._materialNode = createMaterialNode("keleidoscopeMaterial" + "_" + world.generateUniqueNodeID()); | 64 | this._materialNode = RDGE.createMaterialNode("keleidoscopeMaterial" + "_" + world.generateUniqueNodeID()); |
65 | this._materialNode.setShader(this._shader); | 65 | this._materialNode.setShader(this._shader); |
66 | 66 | ||
67 | this._time = 0; | 67 | this._time = 0; |
@@ -85,7 +85,7 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
85 | if (material) | 85 | if (material) |
86 | { | 86 | { |
87 | var technique = material.shaderProgram['default']; | 87 | var technique = material.shaderProgram['default']; |
88 | var renderer = g_Engine.getContext().renderer; | 88 | var renderer = RDGE.globals.engine.getContext().renderer; |
89 | if (renderer && technique) | 89 | if (renderer && technique) |
90 | { | 90 | { |
91 | if (this._shader && this._shader['default']) { | 91 | if (this._shader && this._shader['default']) { |
@@ -95,7 +95,7 @@ var KeleidoscopeMaterial = function KeleidoscopeMaterial() { | |||
95 | this._time = time; | 95 | this._time = time; |
96 | } | 96 | } |
97 | } | 97 | } |
98 | } | 98 | }; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | /////////////////////////////////////////////////////////////////////////////////////// | 101 | /////////////////////////////////////////////////////////////////////////////////////// |