pub fn update_time(time: Res<Time>, mut nodes: Query<&mut ShaderInputs>) {
    let time = time.seconds_since_startup();
    for mut node in nodes.iter_mut() {
        node.time = time as f32;
    }
}
/// Updates time in ShaderInputs every frame

Updates time in ShaderInputs every frame
Updates time in ShaderInputs every frame
pub fn update_time(time: Res<Time>, mut nodes: Query<&mut ShaderInputs>) {
    let time = time.seconds_since_startup();
    for mut node in nodes.iter_mut() {
        node.time = time as f32;
    }
}
pub fn update_time ( time : Res < Time > , mut nodes : Query < & mut ShaderInputs > ) { let time = time . seconds_since_startup ( ) ; for mut node in nodes . iter_mut ( ) { node . time = time as f32 ; } }
Updates time in ShaderInputs every frame
Updates time in ShaderInputs every frame
time
Res<Time>
nodes
Query<&mut ShaderInputs>