diff options
Diffstat (limited to 'js/lib/rdge/materials/linear-gradient-material.js')
-rwxr-xr-x | js/lib/rdge/materials/linear-gradient-material.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/rdge/materials/linear-gradient-material.js b/js/lib/rdge/materials/linear-gradient-material.js index 2c52c67d..d9307274 100755 --- a/js/lib/rdge/materials/linear-gradient-material.js +++ b/js/lib/rdge/materials/linear-gradient-material.js | |||
@@ -207,12 +207,12 @@ var LinearGradientMaterial = function LinearGradientMaterial() { | |||
207 | this.setWorld( world ); | 207 | this.setWorld( world ); |
208 | 208 | ||
209 | // set up the shader | 209 | // set up the shader |
210 | this._shader = new jshader(); | 210 | this._shader = new RDGE.jshader(); |
211 | this._shader.def = linearGradientMaterialDef; | 211 | this._shader.def = linearGradientMaterialDef; |
212 | this._shader.init(); | 212 | this._shader.init(); |
213 | 213 | ||
214 | // set up the material node | 214 | // set up the material node |
215 | this._materialNode = createMaterialNode( this.getShaderName() ); | 215 | this._materialNode = RDGE.createMaterialNode(this.getShaderName()); |
216 | this._materialNode.setShader(this._shader); | 216 | this._materialNode.setShader(this._shader); |
217 | 217 | ||
218 | // send the current values to the shader | 218 | // send the current values to the shader |