Skip to content

Commit

Permalink
fix resources
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Aug 16, 2022
1 parent d924019 commit 5ec6a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn extract_time(mut commands: Commands, time: Extract<Res<Time>>) {

/// Contains global values useful when writing shaders.
/// Currently only contains values related to time.
#[derive(Default, Clone, ExtractResource, Reflect, ShaderType)]
#[derive(Default, Clone, Resource, ExtractResource, Reflect, ShaderType)]
#[reflect(Resource)]
pub struct GlobalsUniform {
/// The time since startup in seconds
Expand All @@ -39,7 +39,7 @@ pub struct GlobalsUniform {
}

/// The buffer containing the [`GlobalsUniform`]
#[derive(Component, Default)]
#[derive(Resource, Default)]
pub struct GlobalsBuffer {
pub buffer: UniformBuffer<GlobalsUniform>,
}
Expand Down

0 comments on commit 5ec6a7b

Please sign in to comment.