File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ bevy_renet = "0.0.12"
15
15
bincode = " 1.3.3"
16
16
serde = { version = " 1.0" , features = [" derive" ] }
17
17
ron = " 0.6"
18
+ bevy_atmosphere = " 0.10.0"
Original file line number Diff line number Diff line change 1
1
use bevy:: prelude:: * ;
2
+ use bevy_atmosphere:: prelude:: AtmosphereCamera ;
2
3
use bevy_mod_raycast:: prelude:: * ;
3
4
4
5
#[ derive( TypePath ) ]
@@ -35,5 +36,6 @@ pub fn spawn_camera(mut commands: Commands) {
35
36
let mut raycast_source = RaycastSource :: < BlockRaycastSet > :: default ( ) ; // Initialisation par défaut
36
37
raycast_source. cast_method = RaycastMethod :: Transform ; // Utilise la transformation de la caméra pour lancer le rayon
37
38
raycast_source // Retourne l'objet
38
- } ) ;
39
+ } )
40
+ . insert ( AtmosphereCamera :: default ( ) ) ;
39
41
}
Original file line number Diff line number Diff line change 1
1
use bevy:: app:: MainScheduleOrder ;
2
2
use bevy:: ecs:: schedule:: ScheduleLabel ;
3
3
use bevy:: prelude:: * ;
4
+ use bevy_atmosphere:: prelude:: * ;
4
5
use chat:: { render_chat, setup_chat} ;
5
6
6
7
use crate :: debug:: BlockDebugWireframeSettings ;
@@ -50,6 +51,7 @@ pub fn game_plugin(app: &mut App) {
50
51
. add_plugins ( DeferredRaycastingPlugin :: < BlockRaycastSet > :: default ( ) ) // Ajout du plugin raycasting
51
52
. add_plugins ( WireframePlugin )
52
53
. add_plugins ( bevy_simple_text_input:: TextInputPlugin )
54
+ . add_plugins ( AtmospherePlugin )
53
55
. insert_resource ( AmbientLight {
54
56
color : Color :: WHITE ,
55
57
brightness : 400.0 ,
You can’t perform that action at this time.
0 commit comments