RawTexture.clone() returns texture of different type and with no Data?

It seems as though when I clone a RawTexture that is of Float32 type, it changes it to a Texture and give it no internal texture.

The buffer just like vanishes.
https://playground.babylonjs.com/#J96GQ4

Looks like RawTexture doesn’t have its own clone function, so it just uses the plain clone function of the super class (Texture):

Sounds like a job for a PR ^_^.

Ill see if I have time here to fix that as well with my latest build.

1 Like