From e46e0fc9ebb5faff61d19dabdb5c2fdbabb75ad0 Mon Sep 17 00:00:00 2001 From: drcmda Date: Wed, 21 Jun 2023 06:05:20 +0200 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff39728..01a4532 100644 --- a/README.md +++ b/README.md @@ -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)