Skip to content

Commit

Permalink
tweak load_gltf cascades
Browse files Browse the repository at this point in the history
  • Loading branch information
danchia committed Jan 22, 2023
1 parent b7b2b9b commit f8ee553
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/3d/load_gltf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::f32::consts::*;

use bevy::prelude::*;
use bevy::{prelude::*, pbr::CascadeShadowConfig};

fn main() {
App::new()
Expand All @@ -26,6 +26,9 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
shadows_enabled: true,
..default()
},
// This is a relatively small scene, so use tighter shadow
// cascade bounds than the default for better quality.
cascade_shadow_config: CascadeShadowConfig::new(1, 1.1, 1.5, 0.3),
..default()
});
commands.spawn(SceneBundle {
Expand Down

0 comments on commit f8ee553

Please sign in to comment.