From 8127d44daa85140a0ca5a448be7265d1b087cfd7 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Fri, 16 Feb 2024 17:24:50 -0800 Subject: [PATCH] Irradiance volume example tweaks (#11911) # Objective Fixes two small quality issues: 1. With the new default ev100 exposure value, the irradiance intensity was too low 2. The camera was rotating at a fixed speed (instead of a speed multiplied by delta time), resulting in frame-rate dependent rotation speed. --- examples/3d/irradiance_volumes.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/3d/irradiance_volumes.rs b/examples/3d/irradiance_volumes.rs index 92c95331fa..18ae956a09 100644 --- a/examples/3d/irradiance_volumes.rs +++ b/examples/3d/irradiance_volumes.rs @@ -22,12 +22,12 @@ use bevy::render::render_resource::{AsBindGroup, ShaderRef, ShaderType}; use bevy::window::PrimaryWindow; // Rotation speed in radians per frame. -const ROTATION_SPEED: f32 = 0.005; +const ROTATION_SPEED: f32 = 0.2; const FOX_SCALE: f32 = 0.05; const SPHERE_SCALE: f32 = 2.0; -const IRRADIANCE_VOLUME_INTENSITY: f32 = 150.0; +const IRRADIANCE_VOLUME_INTENSITY: f32 = 1800.0; const AMBIENT_LIGHT_BRIGHTNESS: f32 = 0.06; @@ -371,6 +371,7 @@ impl AppStatus { // Rotates the camera a bit every frame. fn rotate_camera( mut camera_query: Query<&mut Transform, With>, + time: Res