Can someone please advise me on how to retrieve the dimensions of a texture? I have set my texture using the following line of code:
const texture = THREE.ImageUtils.loadTexture(src)
Do I need to load the image in order to obtain its dimensions (and can this be done with JavaScript alone, without involving HTML and div elements)?
I want to ensure that the material I create will perfectly match the dimensions of the texture.