Skip to content

Commit

Permalink
Increase shadows resolution (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 authored Aug 1, 2023
1 parent 25879ea commit 5ed75be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/camera/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::f32::consts::FRAC_PI_2;

use bevy::{
ecs::query::Has,
pbr::{CascadeShadowConfig, CascadeShadowConfigBuilder},
pbr::{CascadeShadowConfig, CascadeShadowConfigBuilder, DirectionalLightShadowMap},
prelude::*,
};
use de_conf::{CameraConf, Configuration};
Expand Down Expand Up @@ -329,6 +329,8 @@ fn setup(mut commands: Commands, conf: Res<Configuration>) {
},
DespawnOnGameExit,
));

commands.insert_resource(DirectionalLightShadowMap { size: 4096 });
}

fn cleanup(mut commands: Commands) {
Expand Down

0 comments on commit 5ed75be

Please sign in to comment.