diff options
Diffstat (limited to 'js/lib/rdge/materials/julia-material.js')
-rw-r--r-- | js/lib/rdge/materials/julia-material.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/rdge/materials/julia-material.js b/js/lib/rdge/materials/julia-material.js index 07536f33..77d9bb3a 100644 --- a/js/lib/rdge/materials/julia-material.js +++ b/js/lib/rdge/materials/julia-material.js | |||
@@ -50,12 +50,12 @@ var JuliaMaterial = function JuliaMaterial() { | |||
50 | if (world) this.setWorld( world ); | 50 | if (world) this.setWorld( world ); |
51 | 51 | ||
52 | // set up the shader | 52 | // set up the shader |
53 | this._shader = new jshader(); | 53 | this._shader = new RDGE.jshader(); |
54 | this._shader.def = JuliaMaterialDef; | 54 | this._shader.def = JuliaMaterialDef; |
55 | this._shader.init(); | 55 | this._shader.init(); |
56 | 56 | ||
57 | // set up the material node | 57 | // set up the material node |
58 | this._materialNode = createMaterialNode("juliaMaterial"); | 58 | this._materialNode = RDGE.createMaterialNode("juliaMaterial"); |
59 | this._materialNode.setShader(this._shader); | 59 | this._materialNode.setShader(this._shader); |
60 | 60 | ||
61 | this._time = 0; | 61 | this._time = 0; |
@@ -72,7 +72,7 @@ var JuliaMaterial = function JuliaMaterial() { | |||
72 | var material = this._materialNode; | 72 | var material = this._materialNode; |
73 | if (material) { | 73 | if (material) { |
74 | var technique = material.shaderProgram['default']; | 74 | var technique = material.shaderProgram['default']; |
75 | var renderer = g_Engine.getContext().renderer; | 75 | var renderer = RDGE.globals.engine.getContext().renderer; |
76 | if (renderer && technique) { | 76 | if (renderer && technique) { |
77 | if (this._shader && this._shader['default']) { | 77 | if (this._shader && this._shader['default']) { |
78 | this._shader['default'].u_time.set( [this._time] ); | 78 | this._shader['default'].u_time.set( [this._time] ); |