aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/keleidoscope-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/keleidoscope-material.js')
-rw-r--r--js/lib/rdge/materials/keleidoscope-material.js8
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///////////////////////////////////////////////////////////////////////////////////////