From 8eac5582b72115969a9f915f4303535c22018033 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Wed, 2 May 2012 17:00:12 -0700 Subject: Material editor --- js/lib/rdge/materials/linear-gradient-material.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/lib/rdge/materials/linear-gradient-material.js') diff --git a/js/lib/rdge/materials/linear-gradient-material.js b/js/lib/rdge/materials/linear-gradient-material.js index 2d8e6ca7..586948bb 100755 --- a/js/lib/rdge/materials/linear-gradient-material.js +++ b/js/lib/rdge/materials/linear-gradient-material.js @@ -42,6 +42,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { this.setColor1 = function (c) { this._color1 = c.slice(); + this._propValues[this._propNames[0]] = this._color1.slice(0); if (this._shader && this._shader['default']) { this._shader['default'].u_color1.set(c); @@ -54,6 +55,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { this.setColor2 = function (c) { this._color2 = c.slice(); + this._propValues[this._propNames[1]] = this._color2.slice(0); if (this._shader && this._shader['default']) { this._shader['default'].u_color2.set(c); @@ -66,6 +68,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { this.setColor3 = function (c) { this._color3 = c.slice(); + this._propValues[this._propNames[2]] = this._color3.slice(0); if (this._shader && this._shader['default']) { this._shader['default'].u_color3.set(c); @@ -78,6 +81,7 @@ var LinearGradientMaterial = function LinearGradientMaterial() { this.setColor4 = function (c) { this._color4 = c.slice(); + this._propValues[this._propNames[3]] = this._color4.slice(0); if (this._shader && this._shader['default']) { this._shader['default'].u_color4.set(c); -- cgit v1.2.3