babylon.brickProceduralTexture.min.js 1.4 KB

1
  1. var BABYLON;!function(t){var r=function(r){function e(e,i,o,n,s){r.call(this,e,i,"bricktexture",o,n,s),this._numberOfBricksHeight=15,this._numberOfBricksWidth=5,this._jointColor=new t.Color3(.72,.72,.72),this._brickColor=new t.Color3(.77,.47,.4),this.updateShaderUniforms(),this.refreshRate=0}return __extends(e,r),e.prototype.updateShaderUniforms=function(){this.setFloat("numberOfBricksHeight",this._numberOfBricksHeight),this.setFloat("numberOfBricksWidth",this._numberOfBricksWidth),this.setColor3("brickColor",this._brickColor),this.setColor3("jointColor",this._jointColor)},Object.defineProperty(e.prototype,"numberOfBricksHeight",{get:function(){return this._numberOfBricksHeight},set:function(t){this._numberOfBricksHeight=t,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfBricksWidth",{get:function(){return this._numberOfBricksWidth},set:function(t){this._numberOfBricksWidth=t,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"jointColor",{get:function(){return this._jointColor},set:function(t){this._jointColor=t,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brickColor",{get:function(){return this._brickColor},set:function(t){this._brickColor=t,this.updateShaderUniforms()},enumerable:!0,configurable:!0}),e}(t.ProceduralTexture);t.BrickProceduralTexture=r}(BABYLON||(BABYLON={}));