小程序使用的threejs144版本,可导入GLTF模型文件
该文件基于https://github.com/yannliao/threejs.miniprogram项目修改而来,修改了其中fork的旧版本threejs为新版的144版本threejs。小程序基于此可使用144版本three.js,源文件在src下,混淆后的文件在dist文件夹下。使用请参考https://github.com/yannliao/threejs-example-for-miniprogram import * as THREE from '../utils/threejs/three.module' wx.createSelectorQuery().in(this).select('#myCanvas').node().exec((res) => { let canvasId = res[0].node._canvasId const canvas = THREE.global.registerCanvas(canvasId, res[0].node) })
6.13MB
文件大小:
评论区