From 8537718c6b8ff154687b8efea73da386699b4666 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Tue, 10 Jun 2025 09:57:57 -0700 Subject: [PATCH] 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` --- examples/3d/pbr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/3d/pbr.rs b/examples/3d/pbr.rs index 12922db03b..da654ce1f3 100644 --- a/examples/3d/pbr.rs +++ b/examples/3d/pbr.rs @@ -85,8 +85,8 @@ fn setup( right: Val::ZERO, ..default() }, - Transform { - rotation: Quat::from_rotation_z(std::f32::consts::PI / 2.0), + UiTransform { + rotation: Rot2::degrees(90.), ..default() }, ));