Skip to content

Commit 8537718

Browse files
authored
Fix pbr example text rotation (#19571)
# Objective This example migration was missed in #16615 https://pixel-eagle.com/project/b25a040a-a980-4602-b90c-d480ab84076d/run/10633/compare/10627?screenshot=3D+Rendering/pbr.png ## Solution Use new `UiTransform` ## Testing `cargo run --example pbr`
1 parent 57ddae1 commit 8537718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/3d/pbr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ fn setup(
8585
right: Val::ZERO,
8686
..default()
8787
},
88-
Transform {
89-
rotation: Quat::from_rotation_z(std::f32::consts::PI / 2.0),
88+
UiTransform {
89+
rotation: Rot2::degrees(90.),
9090
..default()
9191
},
9292
));

0 commit comments

Comments
 (0)