diff options
author | Valerio Virgillito | 2012-03-13 11:15:34 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-13 11:15:34 -0700 |
commit | f6b958360d82854bdaf51848e7fd715d1f633179 (patch) | |
tree | 80f6c08bb730089bdd3f26310df8d2363f9ba863 /js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js | |
parent | c24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff) | |
parent | 4d7b86f55c504ee4e8c2460cf6b60cb9a2cf18f0 (diff) | |
download | ninja-f6b958360d82854bdaf51848e7fd715d1f633179.tar.gz |
Merge pull request #105 from joseeight/FileIO-Build-Candidate
File I/O adding webGL/canvas data functionality
Diffstat (limited to 'js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js')
-rwxr-xr-x | js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js b/js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js index 12842798..45b260ef 100755 --- a/js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js +++ b/js/helper-classes/backup-delete/Materials/RadialGradientMaterial.js | |||
@@ -146,15 +146,17 @@ 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; |
154 | this._shader.init(); | 156 | this._shader.init(); |
155 | 157 | ||
156 | // set up the material node | 158 | // set up the material node |
157 | this._materialNode = createMaterialNode("radialGradientMaterial"); | 159 | this._materialNode = createMaterialNode("radialGradientMaterial_" + world.generateUniqueNodeID()); |
158 | this._materialNode.setShader(this._shader); | 160 | this._materialNode.setShader(this._shader); |
159 | 161 | ||
160 | // set the shader values in the shader | 162 | // set the shader values in the shader |