Skip to content
New issue

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

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

Already on GitHub? # to your account

useTexture issue #9

Closed
samevision opened this issue May 3, 2023 · 2 comments
Closed

useTexture issue #9

samevision opened this issue May 3, 2023 · 2 comments

Comments

@samevision
Copy link

Hi,

is it possible anyhow to load textures inside of the worker?

The normal texture loader doesn't work since it tries to access the dom:

document.createElementNS is not a function

Best

@drcmda
Copy link
Member

drcmda commented May 6, 2023

document.createElementNS doesn't exist in workers. i guess this would need node polyfills and shims for the dom, possibly jsdom + canvas, but i have no idea how to use these packages. can't even install canvas without node-gyp complaining. if you figure something out you could make a pr.

@drcmda
Copy link
Member

drcmda commented May 7, 2023

should be fixed.

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

No branches or pull requests

2 participants