@~crazy/ez3
v0.0.2
Published
基于Three封装的简易3D版本
Downloads
1
Readme
EZ3
基于 Three 封装的简易 3D 版本
使用方法
- npm i EZ3 -S
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
import * as EZ3 from 'EZ3';
const gltfLoader = new GLTFLoader();
gltfLoader.load('/scene.glb', (obj) = >{
const scene = new Scene(document.getElementById('container'), {
shadow: true,
});
scene.add(obj.scene);
});