Hi Everyone !
I am using BJS with a web worker for performance reasons.
When I try to create a new EquiRectangularCubeTexture
, a crash occurs.
It happens because, to extract the texture buffer, the function _loadImage
of the EquiRectangularCubeTexture
create a new canvas in the document, which is not accessible in the worker scope.
const canvas = document.createElement("canvas");
Is there a possible workaround for this ? Maybe using the readPixels
method ?
Thanks a lot !