You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/cycle.rs
+24-32
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@ use bevy_spectator::{Spectator, SpectatorPlugin};
4
4
5
5
fnmain(){
6
6
App::new()
7
-
.insert_resource(Msaa::Sample4)
8
7
.insert_resource(AtmosphereModel::default())// Default Atmosphere material, we can edit it to simulate another planet
9
8
.insert_resource(CycleTimer(Timer::new(
10
9
bevy::utils::Duration::from_millis(50),// Update our atmosphere every 50ms (in a real game, this would be much slower, but for the sake of an example we use a faster update)
RenderLayers::from_layers(&[0,1]),// To prevent each player from seeing the other skybox, we put each one on a separate render layer (you could also use this render layer for other player specific effects)
RenderLayers::from_layers(&[0,2]),// To prevent each player from seeing the other skybox, we put each one on a separate render layer (you could also use this render layer for other player specific effects)
0 commit comments