Hi, I downloaded toji-gl-matrix-21b745f.
I copied the file dist/gl-matrix-min.js inside the web-root folder.
In index.html i have:
<script src="gl-matrix-min.js"></script>
<script src="main.js" defer></script>
And inside in main.js i use:
const matrix = mat4.create();
Result is: ReferenceError: mat4 is not defined
I already tried glMatrix.mat4 but result is the same.
I don't understand the error. Can someone help me. Thx in advance