officialAccount/node_modules/three/examples/jsm/offscreen/offscreen.js

9 lines
188 B
JavaScript
Raw Normal View History

2025-05-26 08:59:24 +08: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 );
};