I'm new to WebGL. I'm using pixel array in texture2D API. It works fine when I have unpacked pixel array ( size = width * height * 4).
Is it possible to have packed pixel array (size as width * height) and unpack the color in texture API?
I'm new to WebGL. I'm using pixel array in texture2D API. It works fine when I have unpacked pixel array ( size = width * height * 4).
Is it possible to have packed pixel array (size as width * height) and unpack the color in texture API?