aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/julia-material.js
diff options
context:
space:
mode:
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 c1eb2b6d..e35062a0 100644
--- a/js/lib/rdge/materials/julia-material.js
+++ b/js/lib/rdge/materials/julia-material.js
@@ -47,12 +47,12 @@ var JuliaMaterial = function JuliaMaterial() {
47 if (world) this.setWorld( world ); 47 if (world) this.setWorld( world );
48 48
49 // set up the shader 49 // set up the shader
50 this._shader = new jshader(); 50 this._shader = new RDGE.jshader();
51 this._shader.def = JuliaMaterialDef; 51 this._shader.def = JuliaMaterialDef;
52 this._shader.init(); 52 this._shader.init();
53 53
54 // set up the material node 54 // set up the material node
55 this._materialNode = createMaterialNode("juliaMaterial" + "_" + world.generateUniqueNodeID()); 55 this._materialNode = RDGE.createMaterialNode("juliaMaterial" + "_" + world.generateUniqueNodeID());
56 this._materialNode.setShader(this._shader); 56 this._materialNode.setShader(this._shader);
57 57
58 this._time = 0; 58 this._time = 0;
@@ -73,7 +73,7 @@ var JuliaMaterial = function JuliaMaterial() {
73 var material = this._materialNode; 73 var material = this._materialNode;
74 if (material) { 74 if (material) {
75 var technique = material.shaderProgram['default']; 75 var technique = material.shaderProgram['default'];
76 var renderer = g_Engine.getContext().renderer; 76 var renderer = RDGE.globals.engine.getContext().renderer;
77 if (renderer && technique) { 77 if (renderer && technique) {
78 if (this._shader && this._shader['default']) { 78 if (this._shader && this._shader['default']) {
79 this._shader['default'].u_time.set( [this._time] ); 79 this._shader['default'].u_time.set( [this._time] );
@@ -81,7 +81,7 @@ var JuliaMaterial = function JuliaMaterial() {
81 this._time = time; 81 this._time = time;
82 } 82 }
83 } 83 }
84 } 84 };
85} 85}
86 86
87/////////////////////////////////////////////////////////////////////////////////////// 87///////////////////////////////////////////////////////////////////////////////////////