aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/twist-vert-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/twist-vert-material.js')
-rw-r--r--js/lib/rdge/materials/twist-vert-material.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/rdge/materials/twist-vert-material.js b/js/lib/rdge/materials/twist-vert-material.js
index 2d2cdcc5..9af1953d 100644
--- a/js/lib/rdge/materials/twist-vert-material.js
+++ b/js/lib/rdge/materials/twist-vert-material.js
@@ -51,7 +51,7 @@ function TwistVertMaterial()
51 this.setWorld( world ); 51 this.setWorld( world );
52 52
53 // set up the shader 53 // set up the shader
54 this._shader = new jshader(); 54 this._shader = new RDGE.jshader();
55 this._shader.def = twistVertShaderDef; 55 this._shader.def = twistVertShaderDef;
56 this._shader.init(); 56 this._shader.init();
57 57
@@ -59,7 +59,7 @@ function TwistVertMaterial()
59 this._shader.twistMe.color.set( this.getColor() ); 59 this._shader.twistMe.color.set( this.getColor() );
60 60
61 // set up the material node 61 // set up the material node
62 this._materialNode = createMaterialNode("twistVertMaterial" + "_" + world.generateUniqueNodeID()); 62 this._materialNode = RDGE.createMaterialNode("twistVertMaterial" + "_" + world.generateUniqueNodeID());
63 this._materialNode.setShader(this._shader); 63 this._materialNode.setShader(this._shader);
64 64
65 // initialize the twist vert properties 65 // initialize the twist vert properties
@@ -219,7 +219,7 @@ function TwistVertMaterial()
219 if (material) 219 if (material)
220 { 220 {
221 var technique = material.shaderProgram['default']; 221 var technique = material.shaderProgram['default'];
222 var renderer = g_Engine.getContext().renderer; 222 var renderer = RDGE.globals.engine.getContext().renderer;
223 if (renderer && technique) 223 if (renderer && technique)
224 { 224 {
225 var texMapName = this._propValues[this._propNames[5]]; 225 var texMapName = this._propValues[this._propNames[5]];