Skip to content

Commit b9c5ce4

Browse files
rs in codeblocks
1 parent 35d17b1 commit b9c5ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release-content/migration-guides/gltf_pbr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Previously, `bevy_gltf` depended on `bevy_pbr`. This meant scene definition was
77

88
In 0.18, loading a material sub-asset would return a `Handle<StandardMaterial>`.
99

10-
```
10+
```rs
1111
let handle: Handle<StandardMaterial> = asset_server.load("models/animated/Fox.glb#Material0");
1212
```
1313

1414
In 0.19, loading a material sub-asset loads a `GltfMaterial` to accurately represent the data in the glTF file.
1515
To load the `StandardMaterial`, use the `/std` suffix when the `bevy_pbr` feature is turned on (the feature is on by default).
1616

17-
```
17+
```rs
1818
let handle: Handle<GltfMaterial> = asset_server.load("models/animated/Fox.glb#Material0");
1919
let handle_std: Handle<StandardMaterial> = asset_server.load("models/animated/Fox.glb#Material0/std");
2020
```

0 commit comments

Comments
 (0)