Skip to content

Commit e46e0fc

Browse files
authored
Update README.md
1 parent c7d26be commit e46e0fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ index: [`src/models`](src/models)
180180
Compressed textures, resized to 512x512 and converted to `webp`.
181181

182182
```js
183-
import cloud from '@pmndrs/assets/textures/cloud.webp'
183+
const cloud = await import('@pmndrs/assets/textures/cloud.webp')
184+
new THREE.TextureLoader().load(cloud.default, (map) => {
185+
const m = new THREE.MeshStandardMaterial({ map })
186+
})
184187
```
185188

186189
index: [`src/textures`](src/textures)

0 commit comments

Comments
 (0)