node-ejs-renderer/node_modules/three/examples/jsm/offscreen/offscreen.js

9 lines
188 B
JavaScript
Raw Normal View History

2024-06-09 13:55:01 -04:00
import init from './scene.js';
self.onmessage = function ( message ) {
const data = message.data;
init( data.drawingSurface, data.width, data.height, data.pixelRatio, data.path );
};