Related to the earlier post, could the Babylon functions initializeWebWorker()and workerFunction()be exposed on the global BABYLONobject?
I use the CDN babylon.js file instead of importing the npm package. However, to use the 2 functions above, we have to use the npm package like:
import { initializeWebWorker } from '@babylonjs/core/Misc/khronosTextureContainer2Worker.js';
// ...
import { workerFunction } from '@babylonjs/core/Misc/khronosTextureContainer2Worker.js';
since these functions are not exposed on the global BABYLONobject. If possible, I’d like to avoid importing the npm package just to use these 2 functions.
@sebavan I’d be happy to! Though I’m unsure how to go about this
I see that the 2 functions are already exported, but I’m unsure how to make sure that they’re exported on the global BABYLONobject if you could please help advise