m4.js
v1.0.0
Published
Can import 'm4.js' as various webgl 3d math functions from https://github.com/gfxfundamentals/webgl-fundamentals/blob/master/webgl/resources/m4.js
Downloads
164
Maintainers
Readme
m4.js
Can import m4 from 'm4.js'
vs the original https://github.com/gfxfundamentals/webgl-fundamentals/blob/master/webgl/resources/m4.js
With webgl-utils and @flyskywhy/react-native-gcanvas, can practice code on Android or iOS when learning WebGL Fundamentals.
Install
npm install m4.js
How to use
// Quick example
import m4 from 'm4.js';
// ...
var matrix = m4.identity();