I load an image and then I try to use this in the PIXI. But PIXI loads image again when I create a PIXI.Texture
. If I set crossOrigin
to "anonymous"
it works fine and doesn't download a picture again. But how it works and what does it mean? Will it work on the internet or it works local only?
That's what I do that download image
image.crossOrigin = "anonymous";
image.src = "filePath";
image.addEventListener("load", doSomethingFunction, false);