animate/webGl/my-threejs-test/node_modules/three/examples/jsm/offscreen/offscreen.js

9 lines
188 B
JavaScript

import init from './scene.js';
self.onmessage = function ( message ) {
const data = message.data;
init( data.drawingSurface, data.width, data.height, data.pixelRatio, data.path );
};