diff options
author | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-04 17:24:27 -0700 |
commit | 01cf259da7aaa7d70789d9a7c32111d88b477463 (patch) | |
tree | 0bff3395ac681e5f685d2267f7dbc03a8e32bc4a /js/lib/rdge/materials/mandel-material.js | |
parent | 331ea08655245e3532e48bf160d5f68a04d8723f (diff) | |
parent | 13368ca6ebbc13adeafccd898dfffd7ce37cb28a (diff) | |
download | ninja-01cf259da7aaa7d70789d9a7c32111d88b477463.tar.gz |
Merge branch 'refs/heads/ToolFixes' into WebGLMaterials
Conflicts:
js/document/templates/montage-html/default_html.css
js/mediators/element-mediator.js
js/panels/properties.reel/properties.js
js/tools/BrushTool.js
js/tools/LineTool.js
js/tools/PenTool.js
js/tools/SelectionTool.js
js/tools/ShapeTool.js
js/tools/TranslateObject3DTool.js
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/lib/rdge/materials/mandel-material.js')
-rw-r--r-- | js/lib/rdge/materials/mandel-material.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/rdge/materials/mandel-material.js b/js/lib/rdge/materials/mandel-material.js index e7b105e1..a82a4bfc 100644 --- a/js/lib/rdge/materials/mandel-material.js +++ b/js/lib/rdge/materials/mandel-material.js | |||
@@ -57,12 +57,12 @@ var MandelMaterial = function MandelMaterial() { | |||
57 | if (world) this.setWorld( world ); | 57 | if (world) this.setWorld( world ); |
58 | 58 | ||
59 | // set up the shader | 59 | // set up the shader |
60 | this._shader = new jshader(); | 60 | this._shader = new RDGE.jshader(); |
61 | this._shader.def = MandelMaterialDef; | 61 | this._shader.def = MandelMaterialDef; |
62 | this._shader.init(); | 62 | this._shader.init(); |
63 | 63 | ||
64 | // set up the material node | 64 | // set up the material node |
65 | this._materialNode = createMaterialNode("mandelMaterial" + "_" + world.generateUniqueNodeID()); | 65 | this._materialNode = RDGE.createMaterialNode("mandelMaterial" + "_" + world.generateUniqueNodeID()); |
66 | this._materialNode.setShader(this._shader); | 66 | this._materialNode.setShader(this._shader); |
67 | 67 | ||
68 | this._time = 0; | 68 | this._time = 0; |
@@ -79,14 +79,14 @@ var MandelMaterial = function MandelMaterial() { | |||
79 | var material = this._materialNode; | 79 | var material = this._materialNode; |
80 | if (material) { | 80 | if (material) { |
81 | var technique = material.shaderProgram['default']; | 81 | var technique = material.shaderProgram['default']; |
82 | var renderer = g_Engine.getContext().renderer; | 82 | var renderer = RDGE.globals.engine.getContext().renderer; |
83 | if (renderer && technique) { | 83 | if (renderer && technique) { |
84 | if (this._shader && this._shader['default']) | 84 | if (this._shader && this._shader['default']) |
85 | this._shader['default'].u_time.set( [this._time] ); | 85 | this._shader['default'].u_time.set( [this._time] ); |
86 | this._time = time; | 86 | this._time = time; |
87 | } | 87 | } |
88 | } | 88 | } |
89 | } | 89 | }; |
90 | }; | 90 | }; |
91 | 91 | ||
92 | /////////////////////////////////////////////////////////////////////////////////////// | 92 | /////////////////////////////////////////////////////////////////////////////////////// |