Skip to content

Commit 6480bb2

Browse files
committed
README
1 parent 5efb1f0 commit 6480bb2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,29 @@ There is also the minified version
101101
import {
102102
vec3,
103103
mat4,
104-
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.js';
104+
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.min.js';
105105

106106
// ... etc ...
107107
```
108108

109+
and a UMD version
110+
111+
```html
112+
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.js"></script>
113+
<script>
114+
const { mat4, vec3 } = wgpuMatrix;
115+
const m = mat4.identity();
116+
...
117+
</script>
118+
```
119+
120+
or UDM min version
121+
122+
```html
123+
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.min.js"></script>
124+
...
125+
```
126+
109127
or via npm
110128

111129
```sh

0 commit comments

Comments
 (0)