Fix shader_prepass example (#15719)

Simple fix for another missed piece in the port to required components
This commit is contained in:
Tim 2024-10-07 23:45:20 +00:00 committed by GitHub
parent cab00766d9
commit e7b83acadc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -212,7 +212,7 @@ impl Material for PrepassOutputMaterial {
fn toggle_prepass_view(
mut prepass_view: Local<u32>,
keycode: Res<ButtonInput<KeyCode>>,
material_handle: Query<&Handle<PrepassOutputMaterial>>,
material_handle: Query<&MeshMaterial3d<PrepassOutputMaterial>>,
mut materials: ResMut<Assets<PrepassOutputMaterial>>,
mut text: Query<&mut Text>,
) {