aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/julia-material.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-04-04 17:24:27 -0700
committerNivesh Rajbhandari2012-04-04 17:24:27 -0700
commit01cf259da7aaa7d70789d9a7c32111d88b477463 (patch)
tree0bff3395ac681e5f685d2267f7dbc03a8e32bc4a /js/lib/rdge/materials/julia-material.js
parent331ea08655245e3532e48bf160d5f68a04d8723f (diff)
parent13368ca6ebbc13adeafccd898dfffd7ce37cb28a (diff)
downloadninja-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/julia-material.js')
-rw-r--r--js/lib/rdge/materials/julia-material.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/rdge/materials/julia-material.js b/js/lib/rdge/materials/julia-material.js
index a85bd6f7..7aeec3dc 100644
--- a/js/lib/rdge/materials/julia-material.js
+++ b/js/lib/rdge/materials/julia-material.js
@@ -46,12 +46,12 @@ var JuliaMaterial = function JuliaMaterial() {
46 if (world) this.setWorld( world ); 46 if (world) this.setWorld( world );
47 47
48 // set up the shader 48 // set up the shader
49 this._shader = new jshader(); 49 this._shader = new RDGE.jshader();
50 this._shader.def = JuliaMaterialDef; 50 this._shader.def = JuliaMaterialDef;
51 this._shader.init(); 51 this._shader.init();
52 52
53 // set up the material node 53 // set up the material node
54 this._materialNode = createMaterialNode("juliaMaterial" + "_" + world.generateUniqueNodeID()); 54 this._materialNode = RDGE.createMaterialNode("juliaMaterial" + "_" + world.generateUniqueNodeID());
55 this._materialNode.setShader(this._shader); 55 this._materialNode.setShader(this._shader);
56 56
57 this._time = 0; 57 this._time = 0;
@@ -68,7 +68,7 @@ var JuliaMaterial = function JuliaMaterial() {
68 var material = this._materialNode; 68 var material = this._materialNode;
69 if (material) { 69 if (material) {
70 var technique = material.shaderProgram['default']; 70 var technique = material.shaderProgram['default'];
71 var renderer = g_Engine.getContext().renderer; 71 var renderer = RDGE.globals.engine.getContext().renderer;
72 if (renderer && technique) { 72 if (renderer && technique) {
73 if (this._shader && this._shader['default']) { 73 if (this._shader && this._shader['default']) {
74 this._shader['default'].u_time.set( [this._time] ); 74 this._shader['default'].u_time.set( [this._time] );
@@ -76,7 +76,7 @@ var JuliaMaterial = function JuliaMaterial() {
76 this._time = time; 76 this._time = time;
77 } 77 }
78 } 78 }
79 } 79 };
80} 80}
81 81
82/////////////////////////////////////////////////////////////////////////////////////// 82///////////////////////////////////////////////////////////////////////////////////////