How to get the size of datatexture


#1

Greetings everyone,

I am using a data texture to capture my screen.

I tried to get the size of the data texture like this but it’s returning [0,0].

console.log(myDataTexture1.size());

How can i get the exact value of the width and height of data texture.

Thanks in advance