var __extends=this&&this.__extends||(function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])};return function(o,e){function t(){this.constructor=o}r(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}})(),__decorate=this&&this.__decorate||function(r,o,e,t){var n,s=arguments.length,l=s<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(r,o,e,t);else for(var i=r.length-1;i>=0;i--)(n=r[i])&&(l=(s<3?n(l):s>3?n(o,e,l):n(o,e))||l);return s>3&&l&&Object.defineProperty(o,e,l),l},BABYLON;!(function(r){var o=(function(o){function e(e,t,n,s,l){var i=o.call(this,e,t,"grassProceduralTexture",n,s,l)||this;return i._groundColor=new r.Color3(1,1,1),i._grassColors=[new r.Color3(.29,.38,.02),new r.Color3(.36,.49,.09),new r.Color3(.51,.6,.28)],i.updateShaderUniforms(),i}return __extends(e,o),e.prototype.updateShaderUniforms=function(){this.setColor3("herb1Color",this._grassColors[0]),this.setColor3("herb2Color",this._grassColors[1]),this.setColor3("herb3Color",this._grassColors[2]),this.setColor3("groundColor",this._groundColor)},Object.defineProperty(e.prototype,"grassColors",{get:function(){return this._grassColors},set:function(r){this._grassColors=r,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groundColor",{get:function(){return this._groundColor},set:function(r){this._groundColor=r,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),e.prototype.serialize=function(){var e=r.SerializationHelper.Serialize(this,o.prototype.serialize.call(this));e.customType="BABYLON.GrassProceduralTexture",e.grassColors=[];for(var t=0;t