Summary.
A change of frame using gl-matrix.
To use ES6 modules in nodejs (version ≥ 13):
- file extension should be ".mjs"
- add {"type": "module",} to package.json (located in current or parent directory)
- should be used ES6 module syntax: import and export
Usage: - npm init - npm install gl-matrix - node frame-hw2.mjs