Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Jun 21, 2023
1 parent c7d26be commit e46e0fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ index: [`src/models`](src/models)
Compressed textures, resized to 512x512 and converted to `webp`.

```js
import cloud from '@pmndrs/assets/textures/cloud.webp'
const cloud = await import('@pmndrs/assets/textures/cloud.webp')
new THREE.TextureLoader().load(cloud.default, (map) => {
const m = new THREE.MeshStandardMaterial({ map })
})
```

index: [`src/textures`](src/textures)
Expand Down

0 comments on commit e46e0fc

Please sign in to comment.