aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials/RadialGradientMaterial.js
diff options
context:
space:
mode:
authorhwc4872012-03-05 15:16:52 -0800
committerhwc4872012-03-05 15:16:52 -0800
commitec10bf44c711e9c552780d2cd9ac0baef21de445 (patch)
tree1a48fef7db5c560e997ce3d345fa351dc878a8bb /js/helper-classes/RDGE/Materials/RadialGradientMaterial.js
parentcad4d6cb3f667f6174ec05cecead675b244285b9 (diff)
downloadninja-ec10bf44c711e9c552780d2cd9ac0baef21de445.tar.gz
WebGL & Canvas2D file IO
Diffstat (limited to 'js/helper-classes/RDGE/Materials/RadialGradientMaterial.js')
-rwxr-xr-xjs/helper-classes/RDGE/Materials/RadialGradientMaterial.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/Materials/RadialGradientMaterial.js b/js/helper-classes/RDGE/Materials/RadialGradientMaterial.js
index 4ebb1f30..45b260ef 100755
--- a/js/helper-classes/RDGE/Materials/RadialGradientMaterial.js
+++ b/js/helper-classes/RDGE/Materials/RadialGradientMaterial.js
@@ -146,8 +146,10 @@ function RadialGradientMaterial()
146 // duplcate method requirde 146 // duplcate method requirde
147 this.dup = function() { return new RadialGradientMaterial(); } 147 this.dup = function() { return new RadialGradientMaterial(); }
148 148
149 this.init = function() 149 this.init = function( world )
150 { 150 {
151 this.setWorld( world );
152
151 // set up the shader 153 // set up the shader
152 this._shader = new jshader(); 154 this._shader = new jshader();
153 this._shader.def = radialGradientMaterialDef; 155 this._shader.def = radialGradientMaterialDef;