Closed kosshi-net closed 2 years ago
Just calling importScripts() does not bring SimplexNoise to the global scope in webworkers. This at least used to work with earlier versions.
importScripts()
Workaround:
let exports = {}; importScripts('simplex-noise.js'); let SimplexNoise = exports.SimplexNoise;
This should be resolved by using es modules now. https://web.dev/module-workers/
Just calling
importScripts()
does not bring SimplexNoise to the global scope in webworkers. This at least used to work with earlier versions.Workaround: