Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 2.24 KB

3.md

File metadata and controls

36 lines (28 loc) · 2.24 KB

浏览器支持

Three.js 通过 WebGL 在所有现代浏览器中渲染场景(scene)。对于老版本的浏览器,特别是 IE10 之前的,你可能需要使用其他的渲染器。相应的你需要引入一些补丁 (polyfills)。

注:如果不需要支持旧版本的浏览器,那么久不推荐使用其他渲染器,因为它们更慢而且支持的特性更少相对于 WebGL

支持 WebGL 的浏览器

  • chrome 9+
  • Firefox 4+
  • Opera 15+
  • Safari 5.1+
  • IE 11+
  • Edge

Three.js 使用的 JavaScript 特性和 web API

特性 使用位置 模块
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

Polyfills

  • core-js
  • typedarray.js
  • ES6-Promise
  • Blob.js
  • fetch