Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leo9960/xcx_threejs
适用于小程序的three.js
https://github.com/leo9960/xcx_threejs
Last synced: 6 days ago
JSON representation
适用于小程序的three.js
- Host: GitHub
- URL: https://github.com/leo9960/xcx_threejs
- Owner: leo9960
- Created: 2019-03-04T15:36:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T12:40:56.000Z (over 5 years ago)
- Last Synced: 2023-07-23T15:31:05.148Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://developers.weixin.qq.com/community/develop/article/doc/0006eedd21caf84e80985bfb95b813
- Size: 8.08 MB
- Stars: 39
- Watchers: 4
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xcx_threejs
基于three.js r97改造在小程序中直接引入
var THREE=require("three.js")
即可使用
### 关于Texture的加载
目前推荐使用TextureLoader.load(canvas,path)方式加载,或者可以另外创建一个Canvas,将图片通过drawImage画上去,再用wx.canvasGetImageData获取像素点数据传入DataTexture(data,width,height)
##### 有任何建议可以在issue中随意发表,毕竟这个只是刚开始,各位也可以按照思路自行把用到的方法改造到可用