Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 30, 2024
1 parent 5efb1f0 commit 6480bb2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,29 @@ There is also the minified version
import {
vec3,
mat4,
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.js';
} from 'https://wgpu-matrix.org/dist/2.x/wgpu-matrix.module.min.js';

// ... etc ...
```

and a UMD version

```html
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.js"></script>
<script>
const { mat4, vec3 } = wgpuMatrix;
const m = mat4.identity();
...
</script>
```

or UDM min version

```html
<script src="https://wgpu-matrix.org/dist/2.x/wgpu-matrix.min.js"></script>
...
```

or via npm

```sh
Expand Down

0 comments on commit 6480bb2

Please sign in to comment.