From 8f4bd37e1e928ba4812148ba0ff3180ce4a5e487 Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Tue, 14 Oct 2025 10:18:09 -0400 Subject: [PATCH] misc --- src/app.rs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/app.rs b/src/app.rs index 53066cd..7eb749e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -82,18 +82,20 @@ fn setup(mut commands: Commands, mut images: ResMut>, window: Sing commands.spawn((Camera2d, RenderLayers::layer(0))); - commands.spawn(( - Camera3d::default(), - Camera { order: -1, ..default() }, - // Projection::Perspective(PerspectiveProjection { - // aspect_ratio: size.x as f32 / size.y as f32, - // ..default() - // }), - RTCamera, - RenderLayers::layer(1), - Transform::from_xyz(0.0, 5.0, 20.0).looking_at(Vec3::ZERO, Vec3::Y), - Name::new("RT Camera"), - )); + commands + .spawn(( + Camera3d::default(), + // Camera { order: -1, ..default() }, + // Projection::Perspective(PerspectiveProjection { + // aspect_ratio: size.x as f32 / size.y as f32, + // ..default() + // }), + RTCamera, + RenderLayers::layer(1), + Transform::from_xyz(0.0, 5.0, 20.0).looking_at(Vec3::ZERO, Vec3::Y), + Name::new("RT Camera"), + )) + .insert(Camera { order: -1, ..default() }); commands.insert_resource(TracerRenderTextures(img0, img1)); }