@@ -98,7 +98,7 @@ pub fn camera_constants_from_orbit(rot: &Vec3f, focus: &Vec3f, zoom: f32, aspect
98
98
let proj = Mat4f :: create_perspective_projection_lh_yup ( f32:: deg_to_rad ( fov_degrees) , aspect, 0.1 , 10000.0 ) ;
99
99
// translation matrix
100
100
let translate_zoom = Mat4f :: from_translation ( vec3f ( 0.0 , 0.0 , zoom) ) ;
101
- let translate_focus = Mat4f :: from_translation ( * focus) ;
101
+ let translate_focus = Mat4f :: from_translation ( * focus) ;
102
102
// build view / proj matrix
103
103
let view = translate_focus * mat_rot * translate_zoom;
104
104
let pos = view. get_column ( 3 ) ;
@@ -241,7 +241,7 @@ fn update_camera_fly(
241
241
242
242
// generate proj matrix
243
243
let aspect = pmfx. get_window_aspect ( "main_dock" ) ;
244
-
244
+
245
245
// assign view proj
246
246
let constants = camera_constants_from_fly ( & position, & camera. rot , aspect, 60.0 ) ;
247
247
view_proj. 0 = constants. view_projection_matrix ;
@@ -255,9 +255,9 @@ fn update_cameras(
255
255
time : Res < TimeRes > ,
256
256
mut pmfx : ResMut < PmfxRes > ,
257
257
mut query : Query < ( & Name , & mut Position , & mut Camera , & mut ViewProjectionMatrix ) > ) {
258
-
258
+
259
259
pmfx. get_world_buffers_mut ( ) . camera . clear ( ) ;
260
-
260
+
261
261
for ( name, mut position, mut camera, mut view_proj) in & mut query {
262
262
match camera. camera_type {
263
263
CameraType :: Fly => {
@@ -305,7 +305,7 @@ impl BevyPlugin {
305
305
}
306
306
}
307
307
}
308
-
308
+
309
309
// deprecated using get_system function
310
310
for ( lib_name, lib) in & client. libs {
311
311
unsafe {
@@ -408,7 +408,7 @@ impl BevyPlugin {
408
408
let error_col = vec4f ( 1.0 , 0.0 , 0.3 , 1.0 ) ;
409
409
let warning_col = vec4f ( 1.0 , 7.0 , 0.0 , 1.0 ) ;
410
410
let default_col = vec4f ( 1.0 , 1.0 , 1.0 , 1.0 ) ;
411
-
411
+
412
412
// schedule
413
413
client. imgui . separator ( ) ;
414
414
client. imgui . text ( "Schedule" ) ;
@@ -428,13 +428,13 @@ impl BevyPlugin {
428
428
429
429
if self . errors . contains_key ( graph) {
430
430
client. imgui . colour_text (
431
- & format ! ( "Render Graph: {}: {}." , "error" , graph) ,
431
+ & format ! ( "Render Graph: {}: {}." , "error" , graph) ,
432
432
error_col
433
433
) ;
434
434
435
435
for err in & self . errors [ graph] {
436
436
client. imgui . colour_text (
437
- & format ! ( " {}" , err) ,
437
+ & format ! ( " {}" , err) ,
438
438
error_col
439
439
) ;
440
440
}
@@ -446,7 +446,7 @@ impl BevyPlugin {
446
446
render_function_names. push ( format ! ( "{}: {}" , v. 0 , v. 1 ) ) ;
447
447
}
448
448
self . status_ui_category (
449
- & mut client. imgui ,
449
+ & mut client. imgui ,
450
450
& format ! ( "Render Graph ({}):" , graph) ,
451
451
& render_function_names
452
452
) ;
@@ -529,7 +529,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
529
529
530
530
// dynamically change demos and lookup infos in other libs
531
531
let schedule_info = self . get_demo_schedule_info ( & mut client) ;
532
-
532
+
533
533
// get schedule or use default and warn the user
534
534
self . schedule_info = if let Some ( info) = schedule_info {
535
535
info
@@ -576,7 +576,6 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
576
576
577
577
// hook in updates funcs
578
578
for func_name in & info. update {
579
- println ! ( "adding {}" , func_name) ;
580
579
if let Some ( func) = self . get_system_function ( func_name, "" , & client) {
581
580
self . schedule . add_systems ( func) ;
582
581
}
@@ -633,7 +632,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
633
632
634
633
// run setup if requested, we did it here so hotline resources are inserted into World
635
634
if self . run_setup {
636
- let ( cam, vp, pos) = self . setup_camera ( ) ;
635
+ let ( cam, vp, pos) = self . setup_camera ( ) ;
637
636
self . world . spawn ( (
638
637
ViewProjectionMatrix ( vp) ,
639
638
pos,
@@ -723,7 +722,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
723
722
724
723
// -/+ to toggle through demos, ignore test missing and test failing demos
725
724
let wrap_len = demo_list. len ( ) ;
726
-
725
+
727
726
let cur_demo_index = demo_list. iter ( ) . position ( |d| * d == self . session_info . active_demo ) ;
728
727
if let Some ( index) = cur_demo_index {
729
728
let keys = client. app . get_keys_pressed ( ) ;
0 commit comments