Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamkob12 committed Oct 14, 2023
1 parent 3556dea commit d6478f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/chunk/chunk_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ impl ChunkQueue {
&*breg,
MeshingAlgorithm::Culling,
Some(PbsParameters {
pbs_value: 0.10,
pbs_smoothing: 0.7,
pbs_value: 0.20,
pbs_smoothing: 0.5,
}),
)?;
Some((t, grid, cords))
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use utils::*;
// Render distance should be above 1.
pub const RENDER_DISTANCE: i32 = 8;
pub const GEN_SEED: u32 = 5;
const CROSSHAIR_SIZE: f32 = 36.0;
const CROSSHAIR_SIZE: f32 = 22.0;

#[derive(Resource, Clone)]
pub struct BlockMaterial(Handle<StandardMaterial>);
Expand Down Expand Up @@ -65,7 +65,7 @@ fn main() {

.init_resource::<BlockRegistry>()
.insert_resource(AmbientLight {
brightness: 1.0, color: Color::ANTIQUE_WHITE})
brightness: 1.2, color: Color::ANTIQUE_WHITE})
.insert_resource(CycleTimer(Timer::new(
bevy::utils::Duration::from_millis(50),
TimerMode::Repeating,)))
Expand Down
2 changes: 1 addition & 1 deletion src/player/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub(super) fn setup_player(mut commands: Commands) {
))
.insert(ScreenSpaceAmbientOcclusionBundle {
settings: ScreenSpaceAmbientOcclusionSettings {
quality_level: ScreenSpaceAmbientOcclusionQualityLevel::Low,
quality_level: ScreenSpaceAmbientOcclusionQualityLevel::High,
},
..Default::default()
});
Expand Down
6 changes: 3 additions & 3 deletions src/sky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn setup_light(mut commands: Commands, primary_window: Query<&Window, With<P
format!("+"),
TextStyle {
font_size: CROSSHAIR_SIZE,
color: Color::LIME_GREEN,
color: Color::WHITE,
..default()
},
)
Expand All @@ -58,8 +58,8 @@ pub fn daylight_cycle(
atmosphere.sun_position = Vec3::new(0.0, 0.9, 0.7);

if let Some((mut light_trans, mut directional)) = query.single_mut().into() {
let t = Transform::from_xyz(0.0, 0.0, 0.0).looking_to(Vec3::new(0.4, -1.0, 0.4), Vec3::Y);
let t = Transform::from_xyz(0.0, 0.0, 0.0).looking_to(Vec3::new(0.6, -1.0, 0.6), Vec3::Y);
light_trans.rotation = t.rotation;
directional.illuminance = 5000.0;
directional.illuminance = 9000.0;
}
}

0 comments on commit d6478f9

Please sign in to comment.