diff options
Diffstat (limited to 'js/lib/rdge/materials/twist-vert-material.js')
-rw-r--r-- | js/lib/rdge/materials/twist-vert-material.js | 6 |
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 c2573071..1f7b06b1 100644 --- a/js/lib/rdge/materials/twist-vert-material.js +++ b/js/lib/rdge/materials/twist-vert-material.js | |||
@@ -49,7 +49,7 @@ function TwistVertMaterial() | |||
49 | this.init = function() | 49 | this.init = function() |
50 | { | 50 | { |
51 | // set up the shader | 51 | // set up the shader |
52 | this._shader = new jshader(); | 52 | this._shader = new RDGE.jshader(); |
53 | this._shader.def = twistVertShaderDef; | 53 | this._shader.def = twistVertShaderDef; |
54 | this._shader.init(); | 54 | this._shader.init(); |
55 | 55 | ||
@@ -57,7 +57,7 @@ function TwistVertMaterial() | |||
57 | this._shader.twistMe.color.set( this.getColor() ); | 57 | this._shader.twistMe.color.set( this.getColor() ); |
58 | 58 | ||
59 | // set up the material node | 59 | // set up the material node |
60 | this._materialNode = createMaterialNode("twistVertMaterial"); | 60 | this._materialNode = RDGE.createMaterialNode("twistVertMaterial"); |
61 | this._materialNode.setShader(this._shader); | 61 | this._materialNode.setShader(this._shader); |
62 | 62 | ||
63 | // initialize the twist vert properties | 63 | // initialize the twist vert properties |
@@ -189,7 +189,7 @@ function TwistVertMaterial() | |||
189 | if (material) | 189 | if (material) |
190 | { | 190 | { |
191 | var technique = material.shaderProgram['default']; | 191 | var technique = material.shaderProgram['default']; |
192 | var renderer = g_Engine.getContext().renderer; | 192 | var renderer = RDGE.globals.engine.getContext().renderer; |
193 | if (renderer && technique) | 193 | if (renderer && technique) |
194 | { | 194 | { |
195 | var texMapName = this._propValues[this._propNames[5]]; | 195 | var texMapName = this._propValues[this._propNames[5]]; |