mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
775 B
775 B
Configuring luma.gl
Optional Imports
luma.gl is currently published as a single package, however there are still some optional parts of the library that are made available through the use of special imports.
| Optional Import | Description |
|---|---|
import GL from '@luma.gl/constants'; |
Import static WebGL constant definitions |
import '@luma.gl/debug'; |
Install optional WebGL debug support. Enables creation of debug contexts. Import before creating contexts. |
import 'luma.gl/webgl1'; |
Install optional support for running luma.gl on WebGL1-only browsers. Import before creating contexts. |
Running under Node.js
See get-started for information on installing headless-gl to run WebGL under Node.js.