Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Feb 19, 2024
1 parent 198b8cb commit 494dfc6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use bevy::prelude::*;
use bevy_wind_waker_shader::prelude::*;
fn main() {
App::build()
App::new()
.add_plugins((DefaultPlugins, WindWakerShaderPlugin::default()))
.add_systems(Startup, spawn_character)
.run();
Expand All @@ -57,12 +57,12 @@ fn spawn_character(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn((
SceneBundle {
scene: asset_server.load("models/Fox.glb"),
..default()
},
WindWakerShaderBuilder::default()
.time_of_day(TimeOfDay::Afternoon)
.weather(Weather::Sunny)
.build(),
..default()
},
WindWakerShaderBuilder::default()
.time_of_day(TimeOfDay::Afternoon)
.weather(Weather::Sunny)
.build(),
));
}
```
Expand Down

0 comments on commit 494dfc6

Please sign in to comment.