|
@@ -376,7 +376,7 @@ export class TextureBlock extends NodeMaterialBlock {
|
|
return "";
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
- var codeString = `${this._codeVariableName}.texture = new BABYLON.Texture("${this.texture.name}");\r\n`;
|
|
|
|
|
|
+ var codeString = `${this._codeVariableName}.texture = new BABYLON.Texture("${this.texture.name}", null);\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.wrapU = ${this.texture.wrapU};\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.wrapU = ${this.texture.wrapU};\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.wrapV = ${this.texture.wrapV};\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.wrapV = ${this.texture.wrapV};\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.uAng = ${this.texture.uAng};\r\n`;
|
|
codeString += `${this._codeVariableName}.texture.uAng = ${this.texture.uAng};\r\n`;
|