use bevy::prelude::*; use bevy_wind_waker_shader::prelude::*; fn main() { App::new() .add_plugins((DefaultPlugins, WindWakerShaderPlugin::default())) .add_systems(Startup, setup) .add_systems(Update, rotate_light) .run(); } fn setup( mut commands: Commands, mut meshes: ResMut>, mut materials: ResMut>, ) { // objects commands.spawn(( PbrBundle { mesh: meshes.add(Sphere::default()), material: materials.add(Color::WHITE), ..default() }, WindWakerShaderBuilder::default() .time_of_day(TimeOfDay::Day) .weather(Weather::Sunny) .build(), )); // light commands.spawn(PointLightBundle::default()); // camera commands.spawn(Camera3dBundle { transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y), ..default() }); } fn rotate_light(mut q: Query<&mut Transform, With>, time: Res