diff options
author | hwc487 | 2012-05-22 15:44:51 -0700 |
---|---|---|
committer | hwc487 | 2012-05-22 15:44:51 -0700 |
commit | 50ede4afa801f53caff7939dad0408f9a0a8b744 (patch) | |
tree | 9dc0adff9d4f46316db95fe80d9f9deddad28025 /js/lib/rdge/materials/radial-gradient-material.js | |
parent | cc3b66f817c9d72ca247d5ff789a08ec5b57a2b5 (diff) | |
download | ninja-50ede4afa801f53caff7939dad0408f9a0a8b744.tar.gz |
Editable parameters for flag, pulse, uber, and radial gradient materials.
Diffstat (limited to 'js/lib/rdge/materials/radial-gradient-material.js')
-rwxr-xr-x | js/lib/rdge/materials/radial-gradient-material.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/lib/rdge/materials/radial-gradient-material.js b/js/lib/rdge/materials/radial-gradient-material.js index 65679429..083b7371 100755 --- a/js/lib/rdge/materials/radial-gradient-material.js +++ b/js/lib/rdge/materials/radial-gradient-material.js | |||
@@ -147,9 +147,9 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
147 | /////////////////////////////////////////////////////////////////////// | 147 | /////////////////////////////////////////////////////////////////////// |
148 | // Material Property Accessors | 148 | // Material Property Accessors |
149 | /////////////////////////////////////////////////////////////////////// | 149 | /////////////////////////////////////////////////////////////////////// |
150 | this._propNames = ["color1", "color2", "color3", "color4", "colorStop1", "colorStop2", "colorStop3", "colorStop4", "angle"]; | 150 | this._propNames = ["color1", "color2", "color3", "color4", "colorStop1", "colorStop2", "colorStop3", "colorStop4" ]; |
151 | this._propLabels = ["Color 1", "Color 2", "Color 3", "Color 4", "Color Stop 1", "Color Stop 2", "Color Stop 3", "Color Stop 4", "Angle"]; | 151 | this._propLabels = ["Color 1", "Color 2", "Color 3", "Color 4", "Color Stop 1", "Color Stop 2", "Color Stop 3", "Color Stop 4" ]; |
152 | this._propTypes = ["color", "color", "color", "color", "float", "float", "float", "float", "float"]; | 152 | this._propTypes = ["color", "color", "color", "color", "float", "float", "float", "float" ]; |
153 | this._propValues = []; | 153 | this._propValues = []; |
154 | 154 | ||
155 | this._propValues[this._propNames[0]] = this._color1.slice(0); | 155 | this._propValues[this._propNames[0]] = this._color1.slice(0); |
@@ -180,7 +180,6 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
180 | case "colorStop2": this.setColorStop2(value); break; | 180 | case "colorStop2": this.setColorStop2(value); break; |
181 | case "colorStop3": this.setColorStop3(value); break; | 181 | case "colorStop3": this.setColorStop3(value); break; |
182 | case "colorStop4": this.setColorStop4(value); break; | 182 | case "colorStop4": this.setColorStop4(value); break; |
183 | case "angle": this.setAngle(value); break; | ||
184 | } | 183 | } |
185 | 184 | ||
186 | //this.updateValuesInShader(); | 185 | //this.updateValuesInShader(); |