Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OffscreenCanvas in Web Workers #5167

Closed
michaelfranzl opened this issue Mar 19, 2023 · 1 comment
Closed

Support OffscreenCanvas in Web Workers #5167

michaelfranzl opened this issue Mar 19, 2023 · 1 comment

Comments

@michaelfranzl
Copy link

global: (environment === 'browser') ? window : global,

In a browser's web worker, Playcanvas detects node as environment, which does not reflect reality. Because the web worker interface does not define global, the following error is raised in the browser: ReferenceError: global is not defined

This is supported in Three.js. It would be nice if Playcanvas supported this too.

@michaelfranzl
Copy link
Author

This looks like a duplication of #2481, sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant