Three.js
通过 WebGL
在所有现代浏览器中渲染场景(scene
)。对于老版本的浏览器,特别是 IE10
之前的,你可能需要使用其他的渲染器。相应的你需要引入一些补丁 (polyfills
)。
注:如果不需要支持旧版本的浏览器,那么久不推荐使用其他渲染器,因为它们更慢而且支持的特性更少相对于 WebGL
- chrome 9+
- Firefox 4+
- Opera 15+
- Safari 5.1+
- IE 11+
- Edge
特性 | 使用位置 | 模块 |
---|---|---|
Typed Arrays | Source | BufferAttribute, BufferGeometry, etc. |
Web Audio API | Source Audio, AudioContext, AudioListener, etc. | |
WebXR Device API | Source | WebXRManager |
Blob | Source | FileLoader, etc. |
Promise | Examples | GLTFLoader, DRACOLoader, BasisTextureLoader, GLTFExporter, VRButton, ARButton, etc. |
Fetch | Examples | ImageBitmapLoader, etc. |
File API | Examples | GLTFExporter, etc. |
URL API | Examples | GLTFLoader, etc. |
Pointer Lock API | Examples | PointerLockControls |
- core-js
- typedarray.js
- ES6-Promise
- Blob.js
- fetch