diff options
Diffstat (limited to 'js/lib/rdge/materials/z-invert-material.js')
-rw-r--r-- | js/lib/rdge/materials/z-invert-material.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/rdge/materials/z-invert-material.js b/js/lib/rdge/materials/z-invert-material.js index 051b724f..fff01a15 100644 --- a/js/lib/rdge/materials/z-invert-material.js +++ b/js/lib/rdge/materials/z-invert-material.js | |||
@@ -29,7 +29,7 @@ var ZInvertMaterial = function ZInvertMaterial() { | |||
29 | /////////////////////////////////////////////////////////////////////// | 29 | /////////////////////////////////////////////////////////////////////// |
30 | // Methods | 30 | // Methods |
31 | /////////////////////////////////////////////////////////////////////// | 31 | /////////////////////////////////////////////////////////////////////// |
32 | // duplcate method requirde | 32 | // duplicate method required |
33 | this.dup = function( world ) { | 33 | this.dup = function( world ) { |
34 | // allocate a new uber material | 34 | // allocate a new uber material |
35 | var newMat = new ZInvertMaterial(); | 35 | var newMat = new ZInvertMaterial(); |
@@ -50,12 +50,12 @@ var ZInvertMaterial = function ZInvertMaterial() { | |||
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 = zInvertMaterialDef; | 54 | this._shader.def = zInvertMaterialDef; |
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("zInvertMaterial"); | 58 | this._materialNode = RDGE.createMaterialNode("zInvertMaterial"); |
59 | this._materialNode.setShader(this._shader); | 59 | this._materialNode.setShader(this._shader); |
60 | 60 | ||
61 | this._time = 0; | 61 | this._time = 0; |