You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -110,7 +109,7 @@ import { Model } from './Model'
110
109
functionApp() {
111
110
return (
112
111
<Canvas>
113
-
<Model />
112
+
<Model />
114
113
```
115
114
116
115
You can re-use it, it will re-use geometries and materials out of the box:
@@ -208,7 +207,7 @@ useEffect(() => {
208
207
209
208
#### ⚡️ Auto-instancing
210
209
211
-
Use the `--instance` flag and it will look for similar geometry and create instances of them. Look into [drei/Merged](https://github.com/pmndrs/drei#instances) to understand how it works. It does not matter if you instanced the model previously in Blender, it creates instances for each mesh that has a specific geometry and/or material.
210
+
Use the `--instance` flag and it will look for similar geometry and create instances of them. Look into [drei/Merged](https://github.com/pmndrs/drei#instances) to understand how it works. It does not matter if you instanced the model previously in Blender, it creates instances for each mesh that has a specific geometry and/or material.
212
211
213
212
`--instanceall` will create instances of all the geometry. This allows you to re-use the model with the smallest amount of drawcalls.
214
213
@@ -287,7 +286,7 @@ it('should have a scene with a blue mesh', async () => {
287
286
const { scene } =awaitnewPromise((res) =>loader.parse(data, '', res))
0 commit comments