Преглед на файлове

Procedural textures update

David Catuhe преди 10 години
родител
ревизия
4d5eae0602

+ 1 - 1
Babylon/Materials/textures/Procedurals/babylon.customProceduralTexture.js

@@ -42,7 +42,7 @@ var BABYLON;
                 if (xhr.status === 200 || BABYLON.Tools.ValidateXHRData(xhr, 1)) {
                     try  {
                         that._config = JSON.parse(xhr.response);
-                        that._customFragment = this._texturePath + "/custom";
+                        that._customFragment = that._texturePath + "/custom";
                         that._updateTexture = true;
                         that._shaderLoaded = true;
                     } catch (ex) {

+ 2 - 2
Babylon/Materials/textures/Procedurals/babylon.customProceduralTexture.ts

@@ -11,7 +11,7 @@
         constructor(name: string, texturePath: any, size: number, scene: Scene, fallbackTexture?: Texture, generateMipMaps?: boolean) {
             super(name, size, "empty", scene, fallbackTexture, generateMipMaps);
             this._texturePath = texturePath;
-          
+
             //readJson
             this.loadJson(texturePath);
             this.refreshRate = 1;
@@ -40,7 +40,7 @@
                 if (xhr.status === 200 || BABYLON.Tools.ValidateXHRData(xhr, 1)) {
                     try {
                         that._config = JSON.parse(xhr.response);
-                        that._customFragment = this._texturePath + "/custom";
+                        that._customFragment = that._texturePath + "/custom";
                         that._updateTexture = true;
                         that._shaderLoaded = true;
                     }