Headless Mode fixes for the Backend (#65)

This PR brings some fixes that are needed for the backend to render
scenes.
This commit is contained in:
Brooks Palin
2024-02-29 21:47:42 -07:00
committed by GitHub
parent 3413810773
commit a2b2946678
6 changed files with 141 additions and 9 deletions
+3 -2
View File
@@ -26,7 +26,7 @@ use crate::{
camera_controller::{CameraController, CameraControllerBundle},
change_tracking::{ChangeTracker, ChangeTrackingPlugin},
debug::DebugPoint,
headless::{is_headless, is_not_headless, HeadlessSettings},
headless::{self, is_headless, is_not_headless, HeadlessSettings},
math::{Combinable, Extrema},
screenshot::ScreenCapture,
MainCamera,
@@ -326,7 +326,8 @@ fn initialiaze_headless(
..default()
},
CameraControllerBundle::new(focus, camera_xform.translation),
ScreenCapture::from_out(&headless_settings.output_dir),
ScreenCapture::from_out(&headless_settings.output_dir)
.with_max_frames(headless_settings.max_frames),
));
}