Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
RexHackbro authored and Traxar committed Jan 27, 2025
1 parent 1b1d441 commit 5ac312a
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ use bobocraft_graph::damage::{Graph as DamageGraph, GraphBuilder};
use config::Config;
use crossbeam_channel::{bounded, Receiver};
use std::env;
use std::f32::consts::PI;
use std::ops::Not;
use std::path::PathBuf;
use std::f32::consts::PI;

pub type Fallible<T = ()> = Result<T, anyhow::Error>;

Expand Down Expand Up @@ -920,27 +920,31 @@ fn setup_crosshair(mut commands: Commands) {
}

fn setup_lights(mut commands: Commands) {
commands.spawn((DirectionalLight {
color: Color::WHITE,
illuminance: 2000.0,
..default()
},
Transform {
translation: Vec3::new(0.0, 10.0, 5.0),
rotation: Quat::from_euler(EulerRot::XYZ, -PI/8.0, -PI/ 8.0, -PI/8.0),
..default()
}));
commands.spawn((
DirectionalLight {
color: Color::WHITE,
illuminance: 2000.0,
..default()
},
Transform {
translation: Vec3::new(0.0, 10.0, 5.0),
rotation: Quat::from_euler(EulerRot::XYZ, -PI / 8.0, -PI / 8.0, -PI / 8.0),
..default()
},
));

commands.spawn((DirectionalLight {
color: Color::WHITE,
illuminance: 8000.0,
..default()
},
Transform {
translation: Vec3::new(0.0, 10.0, 5.0),
rotation: Quat::from_euler(EulerRot::XYZ, -PI/2.0, 0.0, 0.0),
..default()
}));
commands.spawn((
DirectionalLight {
color: Color::WHITE,
illuminance: 8000.0,
..default()
},
Transform {
translation: Vec3::new(0.0, 10.0, 5.0),
rotation: Quat::from_euler(EulerRot::XYZ, -PI / 2.0, 0.0, 0.0),
..default()
},
));

commands.insert_resource(AmbientLight {
color: Color::WHITE,
Expand Down

0 comments on commit 5ac312a

Please sign in to comment.