Installing

Install using npm

From the root folder of your WebGL project , you can add the SDK as a dependency.
1
$ npm install leiawebglsdk
Copied!
Once installed , you can import and consume the classes from the SDK
main.js
1
import * as THREE from 'three';
2
import RenderController from 'leiawebglsdk/src/RenderController.js';
3
import BackLightController from 'leiawebglsdk/src/BackLightController.js';
4
import { BacklightMode } from 'leiawebglsdk/src/Constants.js';
Copied!
Last modified 4d ago
Copy link