|
@@ -26,12 +26,10 @@ Then you can pass the texture to a material:
|
|
```html
|
|
```html
|
|
<Suspense>
|
|
<Suspense>
|
|
<TresCanvas>
|
|
<TresCanvas>
|
|
- <TresScene>
|
|
|
|
- <TresMesh>
|
|
|
|
- <TresSphereGeometry :args="[1,32,32]" />
|
|
|
|
- <TresMeshStandardMaterial :map="texture" />
|
|
|
|
- </TresMesh>
|
|
|
|
- </TresScene>
|
|
|
|
|
|
+ <TresMesh>
|
|
|
|
+ <TresSphereGeometry :args="[1,32,32]" />
|
|
|
|
+ <TresMeshStandardMaterial :map="texture" />
|
|
|
|
+ </TresMesh>
|
|
</TresCanvas>
|
|
</TresCanvas>
|
|
</Suspense>
|
|
</Suspense>
|
|
```
|
|
```
|
|
@@ -61,18 +59,16 @@ Similar to the previous example, we can pass all the textures to a material via
|
|
```html
|
|
```html
|
|
<Suspense>
|
|
<Suspense>
|
|
<TresCanvas>
|
|
<TresCanvas>
|
|
- <TresScene>
|
|
|
|
- <TresMesh>
|
|
|
|
- <TresSphereGeometry :args="[1,32,32]" />
|
|
|
|
- <TresMeshStandardMaterial
|
|
|
|
- :map="pbrTexture.map"
|
|
|
|
- :displacementMap="pbrTexture.displacementMap"
|
|
|
|
- :roughnessMap="pbrTexture.roughnessMap"
|
|
|
|
- :normalMap="pbrTexture.normalMap"
|
|
|
|
- :ambientOcclusionMap="pbrTexture.ambientOcclusionMap"
|
|
|
|
- />
|
|
|
|
- </TresMesh>
|
|
|
|
- </TresScene>
|
|
|
|
|
|
+ <TresMesh>
|
|
|
|
+ <TresSphereGeometry :args="[1,32,32]" />
|
|
|
|
+ <TresMeshStandardMaterial
|
|
|
|
+ :map="pbrTexture.map"
|
|
|
|
+ :displacementMap="pbrTexture.displacementMap"
|
|
|
|
+ :roughnessMap="pbrTexture.roughnessMap"
|
|
|
|
+ :normalMap="pbrTexture.normalMap"
|
|
|
|
+ :ambientOcclusionMap="pbrTexture.ambientOcclusionMap"
|
|
|
|
+ />
|
|
|
|
+ </TresMesh>
|
|
</TresCanvas>
|
|
</TresCanvas>
|
|
</Suspense>
|
|
</Suspense>
|
|
```
|
|
```
|