Slow down automatic rotation
This commit is contained in:
parent
953a152c97
commit
6bac62f587
|
|
@ -315,7 +315,7 @@ impl DemRenderer {
|
|||
let mut encoder = device.create_command_encoder(&wgpu::CommandEncoderDescriptor {
|
||||
label: Some("DemRendererCommandEncoder"),
|
||||
});
|
||||
let radians_per_second = 0.5;
|
||||
let radians_per_second = 0.25;
|
||||
self.animation_phase += frame_timer.get_frame_time_seconds() as f32 * radians_per_second;
|
||||
self.animation_phase = self.animation_phase % (2.0 * std::f32::consts::PI);
|
||||
let camera_position =
|
||||
|
|
|
|||
Loading…
Reference in New Issue