You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varcanvas=document.getElementById('myStage');vardebug=document.getElementById('myDebug');// Instantiate the renderervarrenderer=newrequire('clipcc-render')(canvas);// Connect to debug canvasrenderer.setDebugCanvas(debug);// Start drawingfunctiondrawStep(){renderer.draw();requestAnimationFrame(drawStep);}drawStep();// Connect to worker (see "playground" example)varworker=newWorker('worker.js');renderer.connectWorker(worker);
Standalone Build
yarn run build
<scriptsrc="/path/to/render.js"></script><script>varrenderer=newwindow.RenderWebGLLocal();// do things</script>