Hi Great PlayCanvas Team, hi there,
I just “perhaps” discover an issue on new Texture command. Texture is loaded, I can set tiling and offset but ignores pc.ADDRESS_REPEAT parameter.
Where I wrong?
Thanks
Romeo
ModelController.prototype._loadTextureFromExternalSource = function(textureName, callBack) {
const image = new Image();
image.crossOrigin = "anonymous";
const playCanvas = pc;
const self = this;
image.onload = function () {
var newTexture = new playCanvas.Texture(self.app.graphicsDevice);
newTexture.setSource(image);
newTexture.addressU = playCanvas.ADDRESS_REPEAT; // this defaults to ADDRESS_REPEAT
newTexture.addressV = playCanvas.ADDRESS_REPEAT; // this defaults to ADDRESS_REPEAT
self.textureCache[textureName] = newTexture;
callBack(newTexture);
};
image.src = `https://xxx.website.xx/${textureName}`;
};