Skip to content
Yann Liao edited this page Oct 18, 2019 · 2 revisions

使用方法

使用build文件夹中的three.webapp.js 或者three.webapp.min.js

import * as THREE from './libs/three.weapp.min.js'

Page({
  data: {},
  onLoad: function () {
    wx.createSelectorQuery()
      .select('#gl')
      .node()
      .exec((res) => {
        const canvas = new THREE.Canvas(res[0].node)
        //编写THREE代码
      })
  },
})


Clone this wiki locally