diff options
author | hwc487 | 2012-05-02 17:00:12 -0700 |
---|---|---|
committer | hwc487 | 2012-05-02 17:00:12 -0700 |
commit | 8eac5582b72115969a9f915f4303535c22018033 (patch) | |
tree | b9ad1621fee37eb73824dab7de062ac4ec2abf77 /js/lib/rdge/materials/radial-gradient-material.js | |
parent | f6983a69649b1c274ce6fe2d278a325994d092b6 (diff) | |
download | ninja-8eac5582b72115969a9f915f4303535c22018033.tar.gz |
Material editor
Diffstat (limited to 'js/lib/rdge/materials/radial-gradient-material.js')
-rwxr-xr-x | js/lib/rdge/materials/radial-gradient-material.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/radial-gradient-material.js b/js/lib/rdge/materials/radial-gradient-material.js index dd40d31d..65679429 100755 --- a/js/lib/rdge/materials/radial-gradient-material.js +++ b/js/lib/rdge/materials/radial-gradient-material.js | |||
@@ -41,6 +41,7 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
41 | 41 | ||
42 | this.setColor1 = function (c) { | 42 | this.setColor1 = function (c) { |
43 | this._color1 = c.slice(); | 43 | this._color1 = c.slice(); |
44 | this._propValues[this._propNames[0]] = this._color1.slice(0); | ||
44 | if (this._shader && this._shader['default']) { | 45 | if (this._shader && this._shader['default']) { |
45 | this._shader['default'].u_color1.set(c); | 46 | this._shader['default'].u_color1.set(c); |
46 | } | 47 | } |
@@ -52,6 +53,7 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
52 | 53 | ||
53 | this.setColor2 = function (c) { | 54 | this.setColor2 = function (c) { |
54 | this._color2 = c.slice(); | 55 | this._color2 = c.slice(); |
56 | this._propValues[this._propNames[1]] = this._color2.slice(0); | ||
55 | if (this._shader && this._shader['default']) { | 57 | if (this._shader && this._shader['default']) { |
56 | this._shader['default'].u_color2.set(c); | 58 | this._shader['default'].u_color2.set(c); |
57 | } | 59 | } |
@@ -64,6 +66,7 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
64 | 66 | ||
65 | this.setColor3 = function (c) { | 67 | this.setColor3 = function (c) { |
66 | this._color3 = c.slice(); | 68 | this._color3 = c.slice(); |
69 | this._propValues[this._propNames[2]] = this._color3.slice(0); | ||
67 | if (this._shader && this._shader['default']) { | 70 | if (this._shader && this._shader['default']) { |
68 | this._shader['default'].u_color3.set(c); | 71 | this._shader['default'].u_color3.set(c); |
69 | } | 72 | } |
@@ -75,6 +78,7 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
75 | 78 | ||
76 | this.setColor4 = function (c) { | 79 | this.setColor4 = function (c) { |
77 | this._color4 = c.slice(); | 80 | this._color4 = c.slice(); |
81 | this._propValues[this._propNames[3]] = this._color4.slice(0); | ||
78 | if (this._shader && this._shader['default']) { | 82 | if (this._shader && this._shader['default']) { |
79 | this._shader['default'].u_color4.set(c); | 83 | this._shader['default'].u_color4.set(c); |
80 | } | 84 | } |