I don’t understand how web-workers works… Are web-workers parallel or just preempted?
Is it safe for a web-workers to render to a webgl context?
If I have only a web-worker rendering to webgl context, and my main “thread” is not invoking the worker also, is it safe to the web-worker to render to the webgl context?
This question has an answer that basically states you can’t use webgl from a web worker as web workers don’t have access to the DOM and you have to call getContext() on a canvas object to get the webgl context.