How do I properly generate cubemaps?

https://jsfiddle.net/s1w8b93k/

When creating a non-cubemap texture, lock() gives me an array of pixels, which I can fill. Though, with a cubemap, it gives an array of 6 nulls, which probably should have been distinct arrays for each face, but they are not. Am I doing something wrong?

I suspect that this is just a bug (feature?) in the engine - that you can’t currently initialize cubemaps from anything other than images.

I don’t see anything there which allocates a pixel array back on the actual face of a level. ‘face’ is an option but is ignored.

Maybe submit a issue on the engine repo on GitHub?