|
@@ -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;
|
|
|
}
|