Checkout what’s happening in the playground on line 98:
You can see where I commented out various arguments to the
BABYLON.Texture class constructor while experimenting.
Oddly enough, I can get it to work when overloading the
url argument as a dataURI which shouldn’t work according to the docs:
pinging @sebavan, which will be back beginning of next week
on it, will have a look today
Thank you @sebavan, but also welcome back!
What you have here are the actual data so you need to use a rawTexture
But why do the docs say the Texture class constructor accept a buffer argument? Am I understanding this wrong?
a buffer containing the png data not the RGB ones.