From cad324cd045087e72054365ea3b883344166682c Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Sun, 13 Jul 2025 02:45:00 +0200 Subject: [PATCH] Port irradiance_volumes --- examples/3d/irradiance_volumes.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/3d/irradiance_volumes.rs b/examples/3d/irradiance_volumes.rs index 80373512db..ba818ce085 100644 --- a/examples/3d/irradiance_volumes.rs +++ b/examples/3d/irradiance_volumes.rs @@ -13,6 +13,8 @@ //! //! * Clicking anywhere moves the object. +use std::f32::consts::PI; + use bevy::{ color::palettes::css::*, core_pipeline::Skybox, @@ -57,8 +59,8 @@ static CLICK_TO_MOVE_HELP_TEXT: &str = "Left click: Move the object"; static GIZMO_COLOR: Color = Color::Srgba(YELLOW); static VOXEL_FROM_WORLD: Mat4 = Mat4::from_cols_array_2d(&[ - [-42.317566, 0.0, 0.0, 0.0], - [0.0, 0.0, 44.601563, 0.0], + [42.317566, 0.0, 0.0, 0.0], + [0.0, 0.0, -44.601563, 0.0], [0.0, 16.73776, 0.0, 0.0], [0.0, 6.544792, 0.0, 1.0], ]);