diff options
Diffstat (limited to 'js/lib/rdge/materials')
-rwxr-xr-x | js/lib/rdge/materials/material.js | 3 | ||||
-rwxr-xr-x | js/lib/rdge/materials/radial-gradient-material.js | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js index d2586b58..34529e6b 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js | |||
@@ -331,6 +331,9 @@ var Material = function GLMaterial( world ) { | |||
331 | jObj[prop] = value; | 331 | jObj[prop] = value; |
332 | } | 332 | } |
333 | 333 | ||
334 | if (this.customExport) | ||
335 | jObj = this.customExport( jObj ); | ||
336 | |||
334 | return jObj; | 337 | return jObj; |
335 | }; | 338 | }; |
336 | 339 | ||
diff --git a/js/lib/rdge/materials/radial-gradient-material.js b/js/lib/rdge/materials/radial-gradient-material.js index b5ffd01a..0e67daf0 100755 --- a/js/lib/rdge/materials/radial-gradient-material.js +++ b/js/lib/rdge/materials/radial-gradient-material.js | |||
@@ -108,6 +108,12 @@ var RadialGradientMaterial = function RadialGradientMaterial() { | |||
108 | 108 | ||
109 | } | 109 | } |
110 | }; | 110 | }; |
111 | |||
112 | this.customExport = function( jObj ) | ||
113 | { | ||
114 | jObj.u_texTransform = this._textureTransform.slice(); | ||
115 | return jObj; | ||
116 | } | ||
111 | }; | 117 | }; |
112 | 118 | ||
113 | /////////////////////////////////////////////////////////////////////////////////////// | 119 | /////////////////////////////////////////////////////////////////////////////////////// |