File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
crates/bevy_solari/src/realtime Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,7 @@ impl Plugin for SolariLightingPlugin {
6969 Render ,
7070 prepare_solari_lighting_resources. in_set ( RenderSystems :: PrepareResources ) ,
7171 )
72- . add_systems (
73- Core3d ,
74- solari_lighting
75- . after ( Core3dSystems :: Prepass )
76- . in_set ( Core3dSystems :: MainPass ) ,
77- ) ;
72+ . add_systems ( Core3d , solari_lighting. in_set ( Core3dSystems :: MainPass ) ) ;
7873 }
7974}
8075
Original file line number Diff line number Diff line change 55
66use bevy:: {
77 asset:: RenderAssetUsages ,
8+ core_pipeline:: schedule:: camera_driver,
89 prelude:: * ,
910 render:: {
1011 extract_resource:: { ExtractResource , ExtractResourcePlugin } ,
@@ -106,7 +107,7 @@ impl Plugin for GameOfLifeComputePlugin {
106107 prepare_bind_group. in_set ( RenderSystems :: PrepareBindGroups ) ,
107108 )
108109 . add_systems ( Render , update. in_set ( RenderSystems :: Prepare ) )
109- . add_systems ( RenderGraph , game_of_life) ;
110+ . add_systems ( RenderGraph , game_of_life. before ( camera_driver ) ) ;
110111 }
111112}
112113
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use std::ops::Not;
1414use bevy:: {
1515 asset:: RenderAssetUsages ,
1616 color:: palettes:: tailwind:: { RED_400 , SKY_400 } ,
17+ core_pipeline:: schedule:: camera_driver,
1718 mesh:: Indices ,
1819 platform:: collections:: HashSet ,
1920 prelude:: * ,
@@ -56,7 +57,7 @@ impl Plugin for ComputeShaderMeshGeneratorPlugin {
5657 . init_resource :: < ChunksToProcess > ( )
5758 . add_systems ( RenderStartup , init_compute_pipeline)
5859 . add_systems ( Render , prepare_chunks)
59- . add_systems ( RenderGraph , compute_mesh) ;
60+ . add_systems ( RenderGraph , compute_mesh. before ( camera_driver ) ) ;
6061 }
6162 fn finish ( & self , app : & mut App ) {
6263 let Some ( render_app) = app. get_sub_app_mut ( RenderApp ) else {
You can’t perform that action at this time.
0 commit comments