diff options
Diffstat (limited to 'js/lib/rdge/materials/linear-gradient-material.js')
-rwxr-xr-x | js/lib/rdge/materials/linear-gradient-material.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/linear-gradient-material.js b/js/lib/rdge/materials/linear-gradient-material.js index 9b331fa7..2df76d61 100755 --- a/js/lib/rdge/materials/linear-gradient-material.js +++ b/js/lib/rdge/materials/linear-gradient-material.js | |||
@@ -45,6 +45,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { | |||
45 | 45 | ||
46 | this.setColor1 = function (c) { | 46 | this.setColor1 = function (c) { |
47 | this._color1 = c.slice(); | 47 | this._color1 = c.slice(); |
48 | this._propValues[this._propNames[0]] = this._color1.slice(0); | ||
48 | 49 | ||
49 | if (this._shader && this._shader['default']) { | 50 | if (this._shader && this._shader['default']) { |
50 | this._shader['default'].u_color1.set(c); | 51 | this._shader['default'].u_color1.set(c); |
@@ -57,6 +58,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { | |||
57 | 58 | ||
58 | this.setColor2 = function (c) { | 59 | this.setColor2 = function (c) { |
59 | this._color2 = c.slice(); | 60 | this._color2 = c.slice(); |
61 | this._propValues[this._propNames[1]] = this._color2.slice(0); | ||
60 | 62 | ||
61 | if (this._shader && this._shader['default']) { | 63 | if (this._shader && this._shader['default']) { |
62 | this._shader['default'].u_color2.set(c); | 64 | this._shader['default'].u_color2.set(c); |
@@ -69,6 +71,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { | |||
69 | 71 | ||
70 | this.setColor3 = function (c) { | 72 | this.setColor3 = function (c) { |
71 | this._color3 = c.slice(); | 73 | this._color3 = c.slice(); |
74 | this._propValues[this._propNames[2]] = this._color3.slice(0); | ||
72 | 75 | ||
73 | if (this._shader && this._shader['default']) { | 76 | if (this._shader && this._shader['default']) { |
74 | this._shader['default'].u_color3.set(c); | 77 | this._shader['default'].u_color3.set(c); |
@@ -81,6 +84,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { | |||
81 | 84 | ||
82 | this.setColor4 = function (c) { | 85 | this.setColor4 = function (c) { |
83 | this._color4 = c.slice(); | 86 | this._color4 = c.slice(); |
87 | this._propValues[this._propNames[3]] = this._color4.slice(0); | ||
84 | 88 | ||
85 | if (this._shader && this._shader['default']) { | 89 | if (this._shader && this._shader['default']) { |
86 | this._shader['default'].u_color4.set(c); | 90 | this._shader['default'].u_color4.set(c); |