aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials/LinearGradientMaterial.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/Materials/LinearGradientMaterial.js')
-rw-r--r--js/helper-classes/RDGE/Materials/LinearGradientMaterial.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/Materials/LinearGradientMaterial.js b/js/helper-classes/RDGE/Materials/LinearGradientMaterial.js
index ce965296..8b23d77e 100644
--- a/js/helper-classes/RDGE/Materials/LinearGradientMaterial.js
+++ b/js/helper-classes/RDGE/Materials/LinearGradientMaterial.js
@@ -135,8 +135,10 @@ function LinearGradientMaterial()
135 // duplcate method requirde 135 // duplcate method requirde
136 this.dup = function() { return new LinearGradientMaterial(); } 136 this.dup = function() { return new LinearGradientMaterial(); }
137 137
138 this.init = function() 138 this.init = function( world )
139 { 139 {
140 this.setWorld( world );
141
140 // set up the shader 142 // set up the shader
141 this._shader = new jshader(); 143 this._shader = new jshader();
142 this._shader.def = linearGradientMaterialDef; 144 this._shader.def = linearGradientMaterialDef;